网络问题,pip安装报错

Python国内镜像 - 图1

改用国内镜像

  1. '''
  2. 阿里云 https://mirrors.aliyun.com/pypi/simple/
  3. 豆瓣 https://pypi.doubanio.com/simple/
  4. 网易 https://mirrors.163.com/pypi/simple/
  5. 清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/
  6. 中国科技大学 http://pypi.mirrors.ustc.edu.cn/simple/
  7. 华中理工大学 http://pypi.hustunique.com/simple/
  8. 山东理工大学 http://pypi.sdutlinux.org/simple/ ## 在线测试,没打开2020-04-05
  9. ...
  10. '''

使用方法

  1. pip help install # 查看pip install 命令的帮助信息
  2. '''
  3. Package Index Options:
  4. -i, --index-url <url> Base URL of the Python Package Index (default https://pypi.org/simple). This should point to a
  5. repository compliant with PEP 503 (the simple repository API) or a local directory laid out in the
  6. same format.
  7. '''
  8. pip install numpy -i https://pypi.tuna.tsinghua.edu.cn/simple/