下载镜像源

清华大学下载镜像源

  • 阿里云 http://mirrors.aliyun.com/pypi/simple/
  • 中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/ 
  • 豆瓣(douban) http://pypi.douban.com/simple/ 
  • 清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/
  • 中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/
    • 可以在使用pip的时候加参数-i https://pypi.tuna.tsinghua.edu.cn/simple   ,这样就会从清华这边的镜像去安装gevent库。
      •     例如:pip install -i https://pypi.tuna.tsinghua.edu.cn/simple gevent
    • 或者直接加在后面
      •     例如:pip3 install matplotlib https://pypi.tuna.tsinghua.edu.cn/simple

pip install 碰到的错误==》[WinError 10061] 由于目标计算机积极拒绝,无法连接。

解决方法

按Win+R快捷键,输入regedit,打开注册表编辑器
找到HKEY_CURRENT_USER/Software/Microsoft/Windows/CurrentVersion/Internet Settings分支,把它下面以 Proxy 打头的键值对(如ProxyEnable,ProxyOverride,ProxyServer等)全部删除

 
 
原文地址:https://www.cnblogs.com/mujun95/p/11870008.html