pip config set global.index-url xxx
#xxx为网址
#如改成清华源
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
阿里云 http://mirrors.aliyun.com/pypi/simple/
豆瓣http://pypi.douban.com/simple/
清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/
中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/
PS:如果pip下载不起来,可以通过这个网址找到whl文件,本地pip安装
#需要在文件同一目录下
pip install xxxxx.whl