ENV内安装的PIP软件包
我有一个Django项目。我创建了一个Env,然后进入Env。通过PIP安装的所有软件包均安装在全球范围内和ENV内。
当我在Env内时,如何避免在全球安装它们? (它们安装在文件夹中:python3.9内的站点包装)。
无论我是否在Env中,“哪个PIP”命令给了我同样的道路:/opt/opt/homebrew/bin/pip
非常感谢您。
I have a Django project. I created an env and I go inside the env. All the packages installed through pip are installed globally AND inside the env.
How can avoid installing them globally when I'm inside the env? (They're installed inside the folder: site-packages, inside python3.9).
"which pip" command gave me the same path if I'm inside the env or not: /opt/homebrew/bin/pip
Thank you so much.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
首先,通过
source {your_virtual_enviroment_name}/bin/activate
第二,通过
pip intermant {library_name}
或pip install -r unigants.txt supption.txt supption.txtts安装库 来激活Virtualenv。
如果有一个。First, activate the virtualenv by
source {your_virtual_enviroment_name}/bin/activate
Second, install the libraries by
pip install {library_name}
orpip install -r requirements.txt
if you have one.