[英]How to fix "Could not install packages due to an EnvironmentError: [WinError 123]"?
[英]How to fix "Could not install packages due to an EnvironmentError: [WinError 32]"
当我尝试在 PowerShell 中通过 pip 更新某些包(如 pyparsing)时,会出现以下代码。
PS C:\Users\asus> pip install --upgrade pyparsing
Collecting pyparsing
Using cached https://files.pythonhosted.org/packages/71/e8/6777f6624681c8b9701a8a0a5654f3 eb56919a01a78e12bf3c73f5a3c714/pyparsing-2.3.0-py2.py3-none-any.whl
Could not install packages due to an EnvironmentError: [WinError 32]Another program is using this file and the process is inaccessible.: 'C:\\Users\\asus\\AppData\\Local\\Temp\\pip-req-tracker-qscubtdg\\7a9bd1f1a8a0eca5473b1eb452840d768d65705871eba1e389e4693d'
Consider using the `--user` option or check the permissions.
请尝试使用 pip 选项:--no-cache-dir
以管理员身份运行该程序。
在我的例子中,我将 eclipse 与 Pydev 一起使用。 当我以管理员身份打开 Eclipse 时,它起作用了。
PS 要以管理员身份运行它,只需右键单击并选择以管理员身份运行。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.