1,匹配 pip install requests,由于网速太慢。
解决方案:使用国内镜像加速。pip install requests -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
参考详细的解决方案:https://blog.csdn.net/qq_39969226/article/details/97369717
2,安装好之后又遇到这个告警,

解决方案:更新requests 版本。 python -m pip install --upgrade pip
3,更新requests 版本遇到报错问题:由于网络原因引起的。
解决方案: 通过配置文件自动调取默认的源。
参考详细的解决方案:https://blog.csdn.net/cpc784221489/article/details/94214306


[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
[install]
trusted-host=mirrors.aliyun.com

此时安装成功啦!!!
4,No module named 'requests' 异常
首先检查:是否成功安装
pip list

所以应该是Project Intertpreter配置问题(项目的解释器配置问题),然后在设置里设置相关路径

此时:ok了!工欲善其事,必先利其器。所以,准备好了,快点进行你的第一个实例吧!
网友评论