已解决ERROR: Could not install packages due to an OSError: [WinError 5] 拒绝访问。: 'e:\\python\\scripts\\pip.exe' Consider using the `--user` option or check the permissions.

发布时间 2023-10-11 11:22:33作者: 行测

已解决ERROR: Could not install packages due to an OSError: [WinError 5] 拒绝访问。: 'e:\\python\\scripts\\pip.exe' Consider using the `--user` option or check the permissions.

 

报错信息:由于OS错误,无法安装程序包:[WinError 5]拒绝访问。: ‘e:\\python\\scripts\\pip.exe'

请考虑使用–user选项或检查权限。

 

报错原因:

PIP安装模块的权限不够导致失败,小伙伴们执行下面的命令即可解决!!!

 

解决方法

执行下面的安装命令:

pip install -i http://pypi.douban.com/simple/ pip -U --trusted-host pypi.douban.com --user

 

安装成功了: