python镜像汇总

常用镜像源汇总:

  1. 清华大学开源镜像站 https://mirrors.tuna.tsinghua.edu.cn/
  2. 网易开源镜像站 http://mirrors.163.com/
  3. 阿里巴巴开源镜像站 https://opsx.alibaba.com/mirror/
  4. 网易开源镜像站http://mirrors.163.com/
  5. 搜狐镜像站(PHP,python)http://mirrors.sohu.com/
  6. 淘宝镜像 https://npm.taobao.org/mirrors/
  7. 腾讯软件源 mirrors.cloud.tencent.com/
  8. 华为开源镜像站:mirrors.huaweicloud.com/
    9.中国科技大学:mirrors.ustc.edu.cn/
    10.北京交通大学:mirror.bjtu.edu.cn/cn/
    11.上海交通大学:ftp.sjtu.edu.cn/
    12.北京理工大学:mirror.bit.edu.cn/web/
    13.浙江大学:http://mirrors.zju.edu.cn
    14.北京理工大学:http://mirror.bit.edu.cn
    15.华中科技大学:mirrors.hust.edu.cn/
    16.豆瓣http://pypi.douban.com/simple/
    17.华中理工大学http://pypi.hustunique.com/simple/
    18.山东理工大学 http://pypi.sdutlinux.org/simple/

3.配置成默认

3.1 使用方法

sudo pip install -i http://pypi.douban.com/simple/ flask

3.2 要配制成默认的话,需要创建或修改配置文件(linux的文件在~/.pip/pip.conf,windows在%HOMEPATH%\pip\pip.ini),修改内容为:

[global]
index-url = http://pypi.douban.com/simple

你可能感兴趣的:(python镜像汇总)