[英]Pip list to show packages installed through pipenv?
I'm using pipenv
to manage virtual environments but I'm confused about the following.我正在使用pipenv
来管理虚拟环境,但我对以下内容感到困惑。
If I run:如果我跑:
pipenv shell
pip list
(or pip3 list
) pip list
(或pip3 list
)I don't get the modules installed in the virtual environment (or those installed globally), it just prints: pip, setuptools, and wheel.我没有在虚拟环境中安装模块(或全局安装的模块),它只是打印:pip、setuptools 和 wheel。
It finds the right packages when running the code and I can see them in the Pipfile, but shouldn't they show when running pip list
?它在运行代码时找到了正确的包,我可以在 Pipfile 中看到它们,但是在运行pip list
时它们不应该显示吗?
Any clarification will be appreciated.任何澄清将不胜感激。
Type pipenv run pip freeze
after activating pipenv with pipenv shell
使用pipenv shell
激活 pipenv 后键入pipenv run pip freeze
you can use pipenv graph
to show installed dependencies tree你可以使用pipenv graph
来显示已安装的依赖树
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.