网站建设用什么框架好,建设和住房保障部 网站,中国国际园林博览会,东莞企业营销一、命令行方式#xff1a;
1、清华源地址#xff1a;
可以在使用pip的时候加参数-i https://pypi.tuna.tsinghua.edu.cn/simple
例如#xff1a;pip install -i https://pypi.tuna.tsinghua.edu.cn/simple gevent#xff0c;这样就会从清华这边的镜像去安装gevent库。 …一、命令行方式
1、清华源地址
可以在使用pip的时候加参数-i https://pypi.tuna.tsinghua.edu.cn/simple
例如pip install -i https://pypi.tuna.tsinghua.edu.cn/simple gevent这样就会从清华这边的镜像去安装gevent库。 2、其他源地址为 阿里云 http://mirrors.aliyun.com/pypi/simple/ 豆瓣
http://pypi.douban.com/simple/ 中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/ 华中科技大学
http://pypi.hustunique.com/ 二、永久使用 1、linux
修改 ~/.pip/pip.conf (没有就创建一个) 修改 index-url至tuna内容如下
[global]
index-url https://pypi.tuna.tsinghua.edu.cn/simple
2、windows
直接在user目录中创建一个pip目录如C:\Users\xx\pip新建文件pip.ini内容如下 [global]index-url https://pypi.tuna.tsinghua.edu.cn/simple