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

There are 2 best solutions below

0
On

Try this:

pip install --user pipenv
1
On

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

python -m pip install pipenv