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
sqbing
V2EX  ›  Python

有优雅的使用 pyenv/pip 的方式吗?

  •  
  •   sqbing ·
    sqbing · 2015-09-15 18:06:49 +08:00 · 3371 次点击
    这是一个创建于 3118 天前的主题,其中的信息可能已经有所发展或是发生改变。

    目前在尝试将一些项目放到 docker 中,希望通过 pyenv 创建运行环境,大概过程如下:

    pyenv install 2.7
    pyenv virtualenv 2.7 container
    

    执行上述命令的过程中,会安装 python-2.7 , pip 和 virtualenv ,但是网络有时会因为 不可抗力 中断,并且速度也很缓慢。

    各位有没有好的法子能够解决这个问题?

    4 条回复    2015-09-15 19:41:11 +08:00
    yangzh
        1
    yangzh  
       2015-09-15 18:37:40 +08:00
    loading
        2
    loading  
       2015-09-15 19:25:21 +08:00 via Android
    想这种,我都是挂 ss 的。
    很多站莫名被封,很烦!
    windfarer
        3
    windfarer  
       2015-09-15 19:27:54 +08:00 via Android
    既然都用 docker 了,就直接去 from 相应版本的 Python 就好了,在里面用 virtualenv 感觉有点多此一举
    firemiles
        4
    firemiles  
       2015-09-15 19:41:11 +08:00
    docker 里为什么还要用 pyenv ,一个 container 需要多个版本的 python 吗
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2843 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 14:34 · PVG 22:34 · LAX 07:34 · JFK 10:34
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.