Why I am suddenly seeing `Usage: source deactivate` whenever I run virtualenvwrapper commands?

后端 未结 3 362
旧时难觅i
旧时难觅i 2020-12-31 02:14

I never used to see this message before when using virtualenvwrapper, but now I\'m suddenly seeing this message whenever I run, say, mkvirtualenv

3条回答
  •  -上瘾入骨i
    2020-12-31 02:45

    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.

提交回复
热议问题