问题
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