已解决(pip安装库报错)Consider using the-- user option or check the permissions.

已解决(pip安装库报错)ERROR: Could not install packages due to an Envi ronmentError: [WinError 5] 拒绝访问。:’d:\pythonjdk\scripts\pip. exe’
Consider using the-- user option or check the permissions.







报错代码


一个粉丝群里的小伙伴用pip安装库的时候报错:


在这里插入图片描述


报错截图:


在这里插入图片描述



报错翻译


报错内容翻译:

错误:由于环境错误,无法安装软件包:[WinError 5]拒绝访问。:’d: \pythonjdk\scripts\pip。exe’
考虑使用–user选项或检查权限。



报错原因


报错原因:由于安装库的时候权限不够发生了报错



解决办法


安装时加上--user即可:

pip install --user numpy

猜你喜欢

转载自blog.csdn.net/yuan2019035055/article/details/126075135