[英]How can I create a virtual environment in which there will be no python libraries?
I want to have an empty virtual environment where there will be no python modules or libraries that had installed before.我想要一个空的虚拟环境,其中没有以前安装的 python 模块或库。 I use git bash for this.
我为此使用 git bash。 I create it and activate, but when I use pip list or pip freeze I see all the libraries I have on my PC.
我创建并激活它,但是当我使用 pip list 或 pip freeze 时,我会看到我的 PC 上的所有库。 What do I do wrong?
我做错了什么? Thank you.
谢谢你。
为了仅查看 virtualenv 中的包,您需要使用pip list --local
(或pip freeze --local
)而不是pip list
(或pip freeze
)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.