the photo from unsplash
前置条件
Ubuntu18.04
时间:2019.4.10
安装pip3
在Ubuntu18.04中Python版本有两个,一个是python2.x,还有一个是Python3.6.5。基本上都是使用Python3,首先要安装pip3
sudo apt-get install python3-pip
修改镜像源
新建一个.pip3文件夹,然后在文件夹中新建一个pip3.conf文件写入下面的内容:
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
[install]
trusted-host=mirrors.aliyun.com
然后保存就好。
附录
国内优秀pip源
  阿里云 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/












网友评论