pip install requests拒绝访问问题

本文介绍了如何处理在使用pip install安装requests库时遇到的权限拒绝问题。通过修改Python安装目录的权限设置,特别是对Program Files中的Python35文件夹进行用户权限调整,可以解决PermissionError,确保import requests不再出错。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

该方法可用于pip install 库的拒绝访问问题

参考资料:https://www.cnblogs.com/liaojiafa/p/5100550.html

C:\Program Files\Python35\Scripts>pip install requests
Collecting requests
  Using cached requests-2.18.4-py2.py3-none-any.whl
Collecting certifi>=2017.4.17 (from requests)
  Using cached certifi-2017.11.5-py2.py3-none-any.whl
Collecting chardet<3.1.0,>=3.0.2 (from requests)
  Using cached chardet-3.0.4-py2.py3-none-any.whl
Collecting urllib3<1.23,>=1.21.1 (from requests)
  Using cached urllib3-1.22-py2.py3-none-any.whl
Collecting idna<2.7,>=2.5 (from requests)
  Using cached idna-2.6-py2.py3-none-any.whl
Installing collected packages: certifi, chardet, urllib3, idna, requests
Exception:
Traceback (most recent call last):
  File "c:\program files\python35\lib\site-packages\pip\basecommand.py", line 215, in main
 
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值