Conda fails to set up paths when activating an environment

醉酒当歌 提交于 2020-01-25 09:30:28

问题


I am using miniconda 4.5.1 on 4.13.0-37-generic GNU/Linux I am also using tmux, if that's useful.

When I activate my environment by running source activate ___ conda fails to set up the paths, meaning my python and pip commands are still mapped to the conda regular (or whatever the name is) python commands, not those from my environment. I get the (env-name) tag before my terminal prompt, as though it has been activated.

I have to activate, then deactivate, then reactivate, to force this to happen, using the following commands:

source activate envname

source deactivate

source activate envname

Any clue as to why this might be happening? Thanks!

来源:https://stackoverflow.com/questions/50093121/conda-fails-to-set-up-paths-when-activating-an-environment

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!