$ mkdir ~/.pip/
$ cd ~/.pip/
$ vim pip.conf #添加
$ 文件内容如下:
[global]
index-url=https://pypi.tuna.tsinghua.edu.cn/simple
trusted-host=pypi.tuna.tsinghua.edu.cn
disable-pip-version-check=true
timeout=120
然后你就可以用pip为所欲为了。。。。。。
$ mkdir ~/.pip/
$ cd ~/.pip/
$ vim pip.conf #添加
$ 文件内容如下:
[global]
index-url=https://pypi.tuna.tsinghua.edu.cn/simple
trusted-host=pypi.tuna.tsinghua.edu.cn
disable-pip-version-check=true
timeout=120
然后你就可以用pip为所欲为了。。。。。。
本文标题:Python源:PyPi换源问题
本文链接:https://www.haomeiwen.com/subject/lwwetxtx.html
网友评论