如何修复“由于环境错误而无法安装软件包:[WinError 32]”

时间:2018-12-22 11:47:03

标签: python pip

当我尝试通过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.

2 个答案:

答案 0 :(得分:1)

请尝试使用以下选项进行pip:--no-cache-dir

答案 1 :(得分:1)

以管理员身份运行程序。

就我而言,我在Pydev中使用eclipse。当我以管理员身份打开eclipse时,它起作用了。

P.S。要以管理员身份运行,只需右键单击并选择以管理员身份运行。

相关问题