阿里云 pyenv 无法下载 python - V2EX
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
fatea
V2EX    Python

阿里云 pyenv 无法下载 python

  •  
  •   fatea 2016-02-13 22:00:04 +08:00 8109 次点击
    这是一个创建于 3532 天前的主题,其中的信息可能已经有所发展或是发生改变。

    执行pyenv install 3.5.1后,就一直卡在

    Downloading Python-3.5.1.tgz...
    -> https://www.python.org/ftp/python/3.5.1/Python-3.5.1.tgz

    再也没有反应了...

    可是我记得 python.org/ftp 没有被墙啊?这个怎么解决?只能找 python 的国内镜像?

    9 条回复    2016-12-06 15:32:51 +08:00
    neoblackcap
        1
    neoblackcap  
       2016-02-13 22:17:35 +08:00
    连接 python.org 的网速非常慢,根据我的理解应该是这些网站都用了 AWS 的 S3 , S3 看地方,像我亲测的广州电信有几十 K 一秒。个人建议你还是换中科大的源吧,反正 Python 那边有 sha256 ,你验证一下就好了,一般不会有什么问题的。
    fatea
        2
    fatea  
    OP
       2016-02-13 22:34:24 +08:00
    @neoblackcap 是的。但是我现在连 Python 本身都没法下载... 所以是要找 pyenv 的国内源。比如:`http://pyenv.qiniudn.com/pythons/`,但是这个的版本有点低,我需要 python 3.5.1 。。。尝试 sohu 的镜像但是失败了,不知道为什么 T_T
    neoblackcap
        3
    neoblackcap  
       2016-02-14 00:08:25 +08:00
    @fatea pyenv 我没用过,按道理应该是可以自己指定源的吧,你去用中科大的源啊,那边网速快,更新快。
    fatea
        4
    fatea  
    OP
       2016-02-14 20:41:01 +08:00
    @neoblackcap 中科大的源是 pypi 的源,就是 pip install 的源,但我是要安装 Python3.5 本身... 阿里云的 apt-get 和 aptitude 里只有 3.4.3 ,我只好先凑合着把程序跑起来再说。
    Catstyle
        5
    Catstyle  
       2016-03-10 20:43:11 +08:00   1
    不知道你解决没有,提供一个方案
    先自己想办法下好源码包,如 https://www.python.org/ftp/python/3.5.1/Python-3.5.1.tgz
    然后上传到服务器上,一般是$PYENV_ROOT/sources 目录
    这个时候在用 pyenv install 3.5.1 -k 来安装, pyenv 就会先检查有没有已存在的 tgz 包
    fatea
        6
    fatea  
    OP
       2016-03-13 13:00:38 +08:00
    @Catstyle 谢谢!
    BrightChen
        7
    BrightChen  
       2016-11-22 22:14:39 +08:00   2
    先谢谢 @Catstyle

    今天 Google 这里,发现目录已经更新了,耽误了一些时间,特此记录一下。

    例如想装 2.7.12 ,就拷贝下载好的文件 Python-2.7.12.tar.xz 到目录 $PYENV_ROOT/sources/2.7.12/ 下面,就是多了一级 folder 。
    dozer47528
        8
    dozer47528  
       2016-12-06 02:19:18 +08:00
    @BrightChen 亲测可用,多谢!
    Dcatch
        9
    Dcatch  
       2016-12-06 15:32:51 +08:00   1
    遇到相同问题找了半天 大家可以先从搜狐下载 py 的包

    http://mirrors.sohu.com/python/
    下载完之后直接复制到楼上大大说的目录即可 也可使用下面这句 bash 脚本

    v=2.7.9|wget http://mirrors.sohu.com/python/$v/Python-$v.tar.xz -P ~/.pyenv/cache/;pyenv install $v

    参考出处 https://segmentfault.com/a/1190000006174123
    关于     帮助文档     自助推广系统     博客     API     FAQ     Solana     4059 人在线   最高记录 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 26ms UTC 05:30 PVG 13:30 LAX 22:30 JFK 01:30
    Do have faith in what you're doing.
    ubao msn snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86