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

[help] virtualenv 不会用了!

  •  
  •   jecvay · Feb 13, 2015 · 3864 views
    This topic created in 4246 days ago, the information mentioned may be changed or developed.

    我在 virtualenv 下做一个项目. 有时候忘记 bin/active, 更多的时候忘记 deactive 就断开ssh.
    现在我遇到了一个难题: 我在没有 bin/active 的时候, 运行 which python3 它返回的路径就是我的那个项目的bin路径. 我不知道怎么将这个问题修复好, 恢复到默认是 /usr/bin/python3 的这个path.
    求指导

    2 replies  •  2015-02-14 00:12:49 +08:00
    kidlj
        1
    kidlj  
       Feb 14, 2015
    $ echo $PATH 看看是不是把项目路径加到 $PATH 里了?
    jecvay
        2
    jecvay  
    OP
       Feb 14, 2015
    @kidlj 哎, 我找了半天发现是 .zshrc 文件里面有一句 export PATH='xxx:yyyy:zzzz' 这个xxx就是项目路径. 我也不知道为什么 .zshrc 里面会有这一句. 难道是我在 bash 下还没 deactive 的时候安装的 oh-my-zsh 然后他把bash的保存过来?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   900 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 20:38 · PVG 04:38 · LAX 13:38 · JFK 16:38
    ♥ Do have faith in what you're doing.