python使用终端对模块进行安装时候报错,安装不了,报错:Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问
问题描述—Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问
![image.png python使用终端对模块进行安装时候报错,安装不了,报错:Could not install packages due to an EnvironmentError: [WinError 5] 拒绝_python](https://file.cfanz.cn/uploads/png/2022/12/03/17/4376DfaY24.png)
问题原因
错误分析:
通过上面报错原因,发现这个问题是没有权限访问C盘,也就是Python解释器安装位置导致的,不是下面吃的黄色警告,提醒你要升级pip模块到最新的22.3.1版本
解决方法
用管理员模式打开cmd,然后再用命令
![image.png python使用终端对模块进行安装时候报错,安装不了,报错:Could not install packages due to an EnvironmentError: [WinError 5] 拒绝_解决方法_02](https://file.cfanz.cn/uploads/png/2022/12/03/17/0f7761X749.png)
![image.png python使用终端对模块进行安装时候报错,安装不了,报错:Could not install packages due to an EnvironmentError: [WinError 5] 拒绝_开发语言_03](https://file.cfanz.cn/uploads/png/2022/12/03/17/a065dGUd6S.png)
![image.png python使用终端对模块进行安装时候报错,安装不了,报错:Could not install packages due to an EnvironmentError: [WinError 5] 拒绝_爬虫_04](https://file.cfanz.cn/uploads/png/2022/12/03/17/934F6Db898.png)
问题解决










