永久配置镜像源,配置后pip install package_name可迅速安装
常用镜像源;
阿里云:https://mirrors.aliyun.com/pypi/simple/
清华:https://pypi.tuna.tsinghua.edu.cn/simple
豆瓣:https://pypi.douban.com/simple/
以清华镜像源为例在cmd中直接输入如下代码段即可:
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple