linux下更换pip源
pip不更换源的话,速度可能非常慢。这里将pip源更换为阿里云源。
1、修改文件~/.pip/pip.conf(没有该文件则创建一个)
$ sudo vim ~/.pip/pip.conf
2、写入以下内容保存即可
[global] trusted-host = mirrors.aliyun.com index-url = http://mirrors.aliyun.com/pypi/simple
本站使用「CC BY-NC-SA」创作共享协议,转载请在文章明显位置注明作者及出处。