[英]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'"我无法使用“pip install pipenv”安装 pipenv 它总是说“错误:由于 OSError 无法安装软件包:[WinError 2] 系统找不到指定的文件:'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.我已经将“C:\Users\leira\AppData\Roaming\Python\Python310\Scripts”和“C:\Users\leira\AppData\Roaming\Python\Python310\site-packages”添加到用户和系统环境路径。 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以管理员身份运行终端,或者如果您使用的是 windows,请运行
python -m pip install pipenv
Try this:尝试这个:
pip install --user pipenv
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.