pip 仓库镜像地址

2019独角兽企业重金招聘Python工程师标准>>> hot3.png

豆瓣地址:https://pypi.douban.com

pip工具修改源文件的路径:C:\Python27\Lib\site-packages\pip\models\index.py

同理修改easy_install的安装源:

easy_install的存放源路径:C:\Python27\Lib\site-packages\setuptools\command\easy_install.py

Linux 下配置阿里云

linux下运行命令vi ~/.pip/pip.conf然后写入如下内容并保存
[global]
trusted-host = mirrors.aliyun.com
index-url = http://mirrors.aliyun.com/pypi/simple

下载库:pip install channels=1.1.1

批量安装:

pip install -r requirements.txt

 

转载于:https://my.oschina.net/jamescasta/blog/874818

你可能感兴趣的:(python,操作系统)