推荐学习书目
› 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
aznfy
V2EX  ›  Python

请问怎样用 pyenv+virtualenv 将虚拟环境创建到工程项目目录下而不是默认的.pyenv/versions/目录下

  •  
  •   aznfy · Mar 3, 2017 · 4298 views
    This topic created in 3538 days ago, the information mentioned may be changed or developed.
    5 replies  •  2017-03-07 22:54:35 +08:00
    billyzs
    billyzs
    Mar 3, 2017
    1
    $ pip install virtualenvwrapper
    $ export WORKON_HOME=~/.envs
    $ mkvirtualenv my_env
    menduo
    menduo
    Mar 7, 2017
    2
    $ pyenv shell 3.5.0 && pip install virtualenv && virtualenv venv && source venv/bin/activate
    aznfy
    aznfy
    OP
    Mar 7, 2017
    3
    @menduo 这也没法建到工程目录下面吧。。。
    aznfy
    aznfy
    OP
    Mar 7, 2017
    4
    @menduo 不好意思!之前试错了!确实可以!感谢!🙏
    menduo
    menduo
    Mar 7, 2017
    5
    @aznfy YOU ARE VERY WELCOME!!! 😀😀😀
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4305 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 06:17 · PVG 14:17 · LAX 22:17 · JFK 01:17
    ♥ Do have faith in what you're doing.