1. 程式人生 > 其它 >Could not install packages due to an EnvironmentError: [WinError5] 拒絕訪問。: ‘c:\\program files\\python

Could not install packages due to an EnvironmentError: [WinError5] 拒絕訪問。: ‘c:\\program files\\python

技術標籤:Python程式設計Python報錯pythonpipeasygui

在使用pip命令安裝easygui時出現如下錯誤:

Could not install packages due to an EnvironmentError: [WinError 5] 拒絕訪問。: 'c:\\program files\\python\\Lib\\site-packages\\easygui'
Consider using the `--user` option or check the permissions.

在這裡插入圖片描述
一般這種錯誤都是許可權不足導致的
解決方案如下:
1.使用管理員身份開啟dos命令即可,然後輸入命令即可解決

2.使用管理員身份開啟pycharm