pip和conda国内源更新module

Posted 没有生只有的我

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了pip和conda国内源更新module相关的知识,希望对你有一定的参考价值。

ubuntu上:

 -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

 

# pip install web.py -i http://pypi.douban.com/simple --trusted-host pypi.douban.com 

一般不会出现问题。

由于anaconda我认为在ubuntu上没有必要装,所以我就没有换源方法了

 

windows系统上:

pip国内源

在这个路径创建pip.ini文件

[global]
timeout = 6000
index-url = http://pypi.douban.com/simple
trusted-host = pypi.douban.com

conda国内源

下创建.condarc文件

channels:
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
  - defaults
show_channel_urls: true

 

以上是关于pip和conda国内源更新module的主要内容,如果未能解决你的问题,请参考以下文章