V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
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 · Sep 15, 2015 · 4309 views
    This topic created in 3890 days ago, the information mentioned may be changed or developed.

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

    pyenv install 2.7
    pyenv virtualenv 2.7 container
    

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

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

    4 replies    2015-09-15 19:41:11 +08:00
    yangzh
        1
    yangzh  
       Sep 15, 2015
    loading
        2
    loading  
       Sep 15, 2015 via Android
    想这种,我都是挂 ss 的。
    很多站莫名被封,很烦!
    windfarer
        3
    windfarer  
       Sep 15, 2015 via Android
    既然都用 docker 了,就直接去 from 相应版本的 Python 就好了,在里面用 virtualenv 感觉有点多此一举
    firemiles
        4
    firemiles  
       Sep 15, 2015
    docker 里为什么还要用 pyenv ,一个 container 需要多个版本的 python 吗
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   6122 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 76ms · UTC 03:31 · PVG 11:31 · LAX 20:31 · JFK 23:31
    ♥ Do have faith in what you're doing.