One - One Code All

Blog Content

python设置国内pip源,国内镜像快

Python   2007-11-11 23:10:47
  1. 用户目录建立pip.conf文件。



  2. cd ~
    mkdir .pip
    cd .pip
    touch pip.conf 		#创建pip.conf文件
  3. pip.conf 文件内容


  4. [global]
    index-url = https://pypi.tuna.tsinghua.edu.cn/simple/
    [install]
    trusted-host=pypi.tuna.tsinghua.edu.cn
  5. 其他源


   清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/

   阿里云 http://mirrors.aliyun.com/pypi/simple/

   中国科学技术大学 https://pypi.mirrors.ustc.edu.cn/simple/

   豆瓣 http://pypi.douban.com/simple/


上一篇:python的pip包安装及批量安装以及国内清华源
下一篇:pip requirements导出当前项目所用的包list列表

The minute you think of giving up, think of the reason why you held on so long.