错误信息如下:
错误原因:
workon,
which is defined in /usr/local/bin/virtualenvwrapper.sh,
calls deactivate.
A script of the same name is present in Anaconda's bin, so it gets called by workon.
解决方案:
The best solution I've found so far is to rename activate and deactivate in Anaconda's bin. If there's a better solution,
please comment and I'll update this answer.
给bin里面的deactivate文件改名字为anadeactivate(ps:名字随意起,这只是个例子)
参考网址:
http://stackoverflow.com/questions/19869059/why-i-am-suddenly-seeing-usage-source-deactivate-whenever-i-run-virtualenvwra
本文介绍了解决workon命令与Anaconda环境之间冲突的方法。冲突源于workon调用了Anaconda目录下的deactivate脚本,导致命令执行错误。解决策略是重命名Anaconda/bin路径下的activate和deactivate文件。
1万+

被折叠的 条评论
为什么被折叠?



