V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
xiaohuangya
V2EX  ›  Python

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

  •  
  •   xiaohuangya · 2016-07-17 16:00:05 +08:00 · 4617 次点击
    这是一个创建于 2840 天前的主题,其中的信息可能已经有所发展或是发生改变。
    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 这个应该加在哪里?。或者有别的什么办法?(◎_◎;)
    萌新求教|´・ω・)ノ
    6 条回复    2016-07-17 21:39:01 +08:00
    ChiangDi
        1
    ChiangDi  
       2016-07-17 16:12:29 +08:00 via Android
    运行命令时加在最后
    xiaohuangya
        2
    xiaohuangya  
    OP
       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
        3
    onlyice  
       2016-07-17 16:39:00 +08:00
    这个 e.pypi.python.org 本来就是错的啊兄弟。。
    你点开看看能不能访问呀

    pypi.mirrors.ustc.edu.cn/simple
    xiaohuangya
        4
    xiaohuangya  
    OP
       2016-07-17 16:45:33 +08:00
    @onlyice 妥了。。网上都给的这些个网址,感谢大胸弟了|´・ω・)ノ
    zsj950618
        5
    zsj950618  
       2016-07-17 18:10:31 +08:00
    用 ustc 的 pypi 源的时候可以使用 https://pypi.mirrors.ustc.edu.cn/
    lslqtz
        6
    lslqtz  
       2016-07-17 21:39:01 +08:00
    pypi.python.org 可以访问。。但 e.是错的
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2946 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 13:49 · PVG 21:49 · LAX 06:49 · JFK 09:49
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.