[英]Python Virtual Enviroment is not using its pip after activation
I have encountered problem when after I activate my venv its still not using its pip or python.我在激活我的 venv 后仍然没有使用它的 pip 或 python 时遇到问题。
venv\Scripts\activate.bat
pip -V
pip 22.0.4 from 'default python path'
Any idea how to solve this not working venv?知道如何解决这个不起作用的 venv 吗? Im using Win 10我正在使用 Win 10
Thanks for all the replies感谢所有的答复
I think the thing is about activation.我认为问题在于激活。 Try to deactivate/activate.尝试停用/激活。 You should see your (venv) before cmd line:您应该在 cmd 行之前看到您的 (venv) :
(venv) C:\Users\...>pip -V
pip 21.3.1 from C:\Users\...\venv\lib\site-packages\pip (python 3.8)
(venv) C:\Users\...>deactivate
C:\Users\...>venv\Scripts\activate.bat
(venv) C:\Users\...>pip -V
pip 21.3.1 from C:\Users\...\venv\lib\site-packages\pip (python 3.8)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.