linux 软件源 镜像源 yum apt pip
1.linux源
2.pypi 源
1.linux源
中国科技大学
http://mirrors.ustc.edu.cn/
科大源帮助
http://mirrors.ustc.edu.cn/help/debian.html
华中科技大学源
http://mirror.hust.edu.cn/
网易源
http://mirrors.163.com/
华为源
https://mirrors.huaweicloud.com/
2.pypi 源
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py # 下载安装脚本
sudo python3 get-pip.py # 运行安装脚本 #注意这里我的环境变量是python3,大家的可能是python
sudo apt-get install python-pip
#or
sudo apt-get install python3-distutils
python3 get-pip.py
sudo pip install -U pip
python -m pip install --upgrade pip
修改源方法:
临时使用: 可以在使用pip的时候在后面加上-i参数,指定pip源 eg: pip install scrapy -i https://pypi.tuna.tsinghua.edu.cn/simple
永久修改: linux: 修改 ~/.pip/pip.conf (没有就创建一个), 内容如下:
[global] index-url = https://pypi.tuna.tsinghua.edu.cn/simple
windows: 直接在user目录中创建一个pip目录,如:C:Usersxxpip,新建文件pip.ini,内容如下
[global] index-url = https://pypi.tuna.tsinghua.edu.cn/simple



