ERROR: Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问

ERROR: Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问

Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问。

在cmd下输入 pip install requests 报错 ,提示:
ERROR: Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问。: ‘c:\program files\python38\Lib\site-packages\urllib3’ Consider using the --user option or check the permissions.

在这里插入图片描述
此时按照提示符Consider using the --user option or check the permissions.
在命令安装的时候最后加上“–user”,就ok了
pip install requests --user

你可能感兴趣的:(python,python,pip)