Python 错误:由于环境错误,无法安装程序包:

Python 错误:由于环境错误,无法安装程序包:,python,Python,我的python是3.7.4。我只是想升级pip,然后我得到了这个错误 ERROR: Could not install packages due to an EnvironmentError: [WinError 5] Access is denied: 'C:\\Users\\SHENSH~1\\AppData\\Local\\Temp\\pip-uninstall-3g065r3k\\pip.exe' Consider using the `--user` option or check

我的python是3.7.4。我只是想升级pip,然后我得到了这个错误

ERROR: Could not install packages due to an EnvironmentError: [WinError 5] Access is denied: 'C:\\Users\\SHENSH~1\\AppData\\Local\\Temp\\pip-uninstall-3g065r3k\\pip.exe'
Consider using the `--user` option or check the permissions.

对于windows,请在cmd中尝试使用python可执行文件运行pip安装

e、 g


这应该行得通,至少对我安装其他软件包是行得通的。

这能回答您的问题吗?
python -m pip install package