美文网首页
python常见问题

python常见问题

作者: ethanea | 来源:发表于2018-05-15 17:15 被阅读0次

1. pip不同的源的包版本可能不一样

2. 国内源

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

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

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

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

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

3. 如果想配置成默认的源,方法如下:

需要创建或修改配置文件(一般都是创建),

linux的文件在~/.pip/pip.conf,

windows在%HOMEPATH%\pip\pip.ini),

修改内容为:

[global]

index-url = http://pypi.douban.com/simple

[install]

trusted-host=pypi.douban.com

相关文章

网友评论

      本文标题:python常见问题

      本文链接:https://www.haomeiwen.com/subject/brdydftx.html