我已经成功安装了 yappi,但是在同一个 shell 中导入 yappi 时仍然出现 ModuleNotFoundError:
((python) ) soumeng78@linux-16 $ pipenv install git+https://github.com/sumerc/yappi#egg=yappi
Installing git+https://github.com/sumerc/yappi#egg=yappi...
Adding yappi to Pipfile's [packages]...
✔ Installation Succeeded
Pipfile.lock (db4242) out of date, updating to (b482eb)...
Locking [dev-packages] dependencies...
Locking [packages] dependencies...
Building requirements...
Resolving dependencies...
✔ Success!
Updated Pipfile.lock (b482eb)!
Installing dependencies from Pipfile.lock (b482eb)...
ðŸ ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ 0/0 — 00:00:00
((python) ) soumeng78@linux-16 $ python
Python 3.9.6 (default, Jan 4 2022, 00:31:29)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-11)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import yappi
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
<stdin> 1 <module>
1
ModuleNotFoundError:
No module named 'yappi'
知道如何使它工作吗?我想使用 yappi 来分析一个函数。