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