linux环境pip源配置

修改pip安装源。在mac上需要自己创建.pip/目录和配置文件。
# mkdir ~/.pip # vim ~/.pip/pip.conf
 
# 阿里源
[global] index-url = http://mirrors.aliyun.com/pypi/simple/ trusted-host = mirrors.aliyun.com
 
# 豆瓣源
[global] index-url = http://pypi.douban.com/simple trusted-host = pypi.douban.com

posted @ 2021-10-25 15:00  一只奔跑的小猿  阅读(351)  评论(0)    收藏  举报