pip时ERROR: Could not install packages due to an OSError: [WinError 5] 拒绝访问。: ‘d:\\anaconda3\\lib\

python中,用pip安装和升级报出现如下报错:

ERROR: Could not install packages due to an OSError: [WinError 5] 拒绝访问。: 'd:\\anaconda3\\lib\\site-packages\\~atplotlib\\backends\\_backend_agg.cp36-win_amd64.pyd'
Consider using the `--user` option or check the permissions.

解决方法:给anaconda文件夹权限。

pip时ERROR: Could not install packages due to an OSError: [WinError 5] 拒绝访问。: ‘d:\\anaconda3\\lib\_第1张图片

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