使用virtualenvwrapper时,我以前从未看到过这个消息,但现在无论我运行什么命令,比如mkvirtualenv <environment>
或workon <environment>
,我都突然看到了这个消息:
Usage: source deactivate
removes the 'bin' directory of the environment activated with 'source
activate' from PATH.
我并没有修改virtualenvwrapper,快速的谷歌搜索只有这个GitHub问题 -- 我之前安装了IPython/Anaconda,但是我不确定它是否会干扰virtualenvwrapper。无论如何,我尝试更新两者(conda update conda; conda update ipython
)以及将virtualenvwrapper本身更新到v4.1.1,但我仍然看到这个错误。
我正在运行OS X 10.8.4。
deactivate
,但最终却调用了 conda 的 deactivate。 - asmeurerrm -fr ~/anaconda
即可解决问题。我使用的操作系统版本是OS X 10.9.2。 - Jheasly