简体   繁体   中英

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\Scripts\activate.bat
pip -V
pip 22.0.4 from 'default python path'

Any idea how to solve this not working venv? Im using 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:

(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)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM