ubuntu配置pip镜像

mkdir ~/.pip
vim ~/.pip/pip.conf
在文件中输入一下内容

[global]
trusted-host=mirrors.aliyun.com
index-url = http://mirrors.aliyun.com/pypi/simple/
点击esc
再次输入:wq!退出即可
posted @ 2020-10-21 16:14  三一一一317  阅读(385)  评论(0)    收藏  举报