cd ~
mkdir .pip
touch pip.conf
sudo vim pip.conf
输入内容如下:(豆瓣镜像源,可换为其他,如清华大学镜像源)
[global]
timeout=6000
index-url=http://pypi.douban.com/simple/
[install]
use-mirrors=true
mirrors=http://pypi.douban.com/simple/
trusted-host=pypi.douban.com
cd ~
mkdir .pip
touch pip.conf
sudo vim pip.conf
输入内容如下:(豆瓣镜像源,可换为其他,如清华大学镜像源)
[global]
timeout=6000
index-url=http://pypi.douban.com/simple/
[install]
use-mirrors=true
mirrors=http://pypi.douban.com/simple/
trusted-host=pypi.douban.com
本文标题:Ubuntu/macOS下更换pip/pip3安装源
本文链接:https://www.haomeiwen.com/subject/hvqhzctx.html
网友评论