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

Viewed 593

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!

2 Answers

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

python -m pip install pipenv

Try this:

pip install --user pipenv
Related