pip安装连接超时

问题:安装request模块报错

 解决:

pip install 包名 -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
因为连接外国源,设置为国内豆瓣源就好

豆瓣源不可用了,使用阿里源

pip install   -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com 包名

  

posted @ 2021-06-11 23:16  lucky_tomato  阅读(66)  评论(0编辑  收藏  举报