1、更换镜像地址
如清华大学的镜像源(https://pypi.tuna.tsinghua.edu.cn/simple)
终端输入命令:
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
再次下载包(如下载pandas):
pip install pandas
2、下载时指定镜像地址
在终端下载包时,指定镜像地址(如下载pandas包,使用清华大学的镜像):
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pandas