pip3 更新源出问题啦(ಥ_ಥ)

2016-07-17 16:00:05 +08:00
 xiaohuangya
pip3 安装 packages 的速度好慢啊,怎么办?加入了那些代码
[global]
index-url = http://e.pypi.python.org/simple
timeout = 1000
[install]
use-mirrors = true
mirrors = http://e.pypi.python.org
但是安装是说,不被信任。
The repository located at e.pypi.python.org is not a trusted or secure host and is being ignored. If this repository is available via HTTPS it is recommended to use HTTPS instead, otherwise you may silence this warning and allow it anyways with '--trusted-host e.pypi.python.org'.
Could not find a version that satisfies the requirement sympy (from versions: )
No matching distribution found for sympy

或者说--trusted-host 这个应该加在哪里?。或者有别的什么办法?(◎_◎;)
萌新求教|´・ω・)ノ
4626 次点击
所在节点    Python
6 条回复
ChiangDi
2016-07-17 16:12:29 +08:00
运行命令时加在最后
xiaohuangya
2016-07-17 16:30:50 +08:00
@ChiangDi 为什么我输入这个: pip3 install sympy --trusted-host e.pypi.python.org
会报错m(._.)m
Collecting sympy
Could not find a version that satisfies the requirement sympy (from versions: )
No matching distribution found for sympy
onlyice
2016-07-17 16:39:00 +08:00
这个 e.pypi.python.org 本来就是错的啊兄弟。。
你点开看看能不能访问呀

pypi.mirrors.ustc.edu.cn/simple
xiaohuangya
2016-07-17 16:45:33 +08:00
@onlyice 妥了。。网上都给的这些个网址,感谢大胸弟了|´・ω・)ノ
zsj950618
2016-07-17 18:10:31 +08:00
用 ustc 的 pypi 源的时候可以使用 https://pypi.mirrors.ustc.edu.cn/
lslqtz
2016-07-17 21:39:01 +08:00
pypi.python.org 可以访问。。但 e.是错的

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/293028

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX