问题:在python中安装包出现Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None))
原因:连接超时,下载不了安装包
解决办法:
pip install pymysql -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
清华镜像:https://pypi.tuna.tsinghua.edu.cn/simple
python -m pip install --upgrade 模块名
(其中的pymysql是你需要下载的,根据自己需求自行更改)
查看PyMySQL的版本
pip show PyMySQL
conda加镜像
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --set show_channel_urls yes