第一种方式-

pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/

附国内常用镜像源:
阿里云:https://mirrors.aliyun.com/pypi/simple/
中国科技大学:https://pypi.mirrors.ustc.edu.cn/simple/
清华大学:https://pypi.tuna.tsinghua.edu.cn/simple/

豆瓣(douban) http://pypi.douban.com/simple/
原始 https://pypi.python.org/simple

第二种方式-

在Linux系统中,修改~/.pip/pip.conf文件;在Windows系统中,修改C:\Users\XXX\pip\pip.ini文件。如果没有上述文件,需要手动建立。

在文件中输入以下内容:

[global]
index-url = https://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host = mirrors.ustc.edu.cn
 

最新文章

  1. 微信小程序 教程及示例
  2. [ACM_水题] UVA 11292 Dragon of Loowater [勇士斗恶龙 双数组排序 贪心]
  3. [转]java工程师成神之路
  4. 第三百三十一天 how can I 坚持
  5. delphi 读网页线程TReadHtmlThread
  6. [Mark] KVM 虚拟化基本原理
  7. 网站优化记录-通过命令预编译Asp.net 网站,成功优化到毫秒级别。
  8. Java读取ini配置
  9. 判断客户端使用的是安卓还是苹果,然后加载对应的css文件
  10. 【翻译】CSS Animations VS the Web Animations API:案例学习
  11. 用Java进行大数处理(BigInteger)-hdu1042
  12. 常用git命令总结 初始化git库操作 git 子模块
  13. MySQL升级教程(CentOS)
  14. 把Excel选手名单信息导入到评委计分软件Access数据库的步骤
  15. tomcat8+memcached session共享
  16. swift4.2 - 距离传感器
  17. Android学习总结——DrawerLayout 侧滑栏点击事件穿透
  18. 1025 PAT Ranking[排序][一般]
  19. Swift之沙盒与数据存储
  20. java SSH框架

热门文章

  1. Java泛型详解,通俗易懂只需5分钟
  2. C++ Templates (1.1 初窥函数模板 A First Look at Function Templates)
  3. StructuredStreaming(New)
  4. oracle进行一对多关联查询的时候,获取副表(也就是多条记录的那张表)的最新一条记录进行关联,如何获取多条记录最新一条呢?
  5. fdisk时WARNING: Re-reading the partition table failed with error 16: 设备或资源忙.
  6. springMVC入门(五)------统一异常处理
  7. 使用IDEA创建一个SSM工程(非maven)
  8. Application.LoadLevel
  9. Bitmap转ImageSource
  10. HDU多校1003-Divide the Stones(构造)