登录    |    注册

Python pypi 镜像

2020-11-30 11:28:45

Python pypi 镜像下载

镜像入口

更改 pip 安装使用镜像可以采用两种方法:

  1. 1、临时方法:每条安装命令增加参数:
  pip install -i https://isrc.iscas.ac.cn/mirror/pypi/web/simple/ requests
  1. 2、持久设置方法:
  2. Linux:创建 ~/.pip/pip.conf 文件,并添加如下内容
  [global]
  index-url = https://isrc.iscas.ac.cn/mirror/pypi/web/simple
  extra-index-url= https://pypi.python.org/simple
  [global]
  index-url = https://isrc.iscas.ac.cn/mirror/pypi/web/simple
  extra-index-url= https://pypi.python.org/simple