简体   繁体   中英

Could not install 'pip install pipenv' on windows 10 due to ERROR: Could not install packages due to an OSError: [WinError 2]

I could not install pipenv by using "pip install pipenv" It always says "ERROR: Could not install packages due to an OSError: [WinError 2] The system cannot find the file specified: 'C:\Python310\Scripts\pipenv.exe' -> 'C:\Python310\Scripts\pipenv.exe.deleteme'"

enter image description here

it also says like this

enter image description here

I already added the "C:\Users\leira\AppData\Roaming\Python\Python310\Scripts" and "C:\Users\leira\AppData\Roaming\Python\Python310\site-packages" to User and System Environmental paths. I don't know what else to do. Please help. Thank you so much!

Run the terminal as an administrator or if you are on windows, run

python -m pip install pipenv

Try this:

pip install --user pipenv

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