sqbing
V2EX  ›  Python

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

By sqbing at 2015 年 9 月 15 日 · 4663 次点击

目前在尝试将一些项目放到 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 年 9 月 15 日
loading
   2
loading  
   2015 年 9 月 15 日 via Android
想这种,我都是挂 ss 的。
很多站莫名被封,很烦!
windfarer
   3
windfarer  
   2015 年 9 月 15 日 via Android
既然都用 docker 了,就直接去 from 相应版本的 Python 就好了,在里面用 virtualenv 感觉有点多此一举
firemiles
   4
firemiles  
   2015 年 9 月 15 日
docker 里为什么还要用 pyenv ,一个 container 需要多个版本的 python 吗
推荐学习书目
› 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
© 2026 V2EX · 27ms · 3.9.8.5