Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is Anaconda source activate non-existent?

I successfully created two separate Python environments in Anaconda, yet seem to be unable to activate either one of them. I have tried to read up on this topic as much as possible here on Stackoverflow, yet no solution did resolve my issue. I added information asked for by comments in this question (Anaconda Environment Doesnt activate).

When trying to activate an environment, the console output is -bash: activate: No such file or directory.

The output of which conda is /Users/username/anaconda3/bin/conda. The output of type source is source is a shell builtin. When trying which activate, the shell returns nothing.

In my bin folder, I also seem not to have an activate executable, but only one which is called activate-global-python-argcomplete.

Why do I lack the standard activate file and how I could resolve this issue best?

like image 323
thenaturalist Avatar asked Nov 02 '15 22:11

thenaturalist


1 Answers

I experience a similar problem. In my case, the problem is related to the use of the tcsh, but activate only supports bash and zsh.

You can check your current used shell with the command echo $0.

You have to use a compatible shell in order to use the source activate command.

like image 104
smiddy84 Avatar answered Oct 08 '22 13:10

smiddy84