豆瓣地址: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.comindex-url = http://mirrors.aliyun.com/pypi/simple
下载库:pip install channels=1.1.1
批量安装:
pip install -r requirements.txt