已解决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.

已解决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

 

安装成功了:

 

 

posted @   行测  阅读(3373)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· 记一次.NET内存居高不下排查解决与启示
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· .NET10 - 预览版1新功能体验(一)
点击右上角即可分享
微信分享提示