Programmers learn & share
0 votes
1.2k views

Problem :

 gonzo  ~/a/packages  conda env list

# conda environments:

#

ppo_latest               /nohome/jaan/alecxe/anaconda3/envs/ppo_latest

root                  *  /nohome/jaan/alecxe/anaconda3

 gonzo  ~/a/packages  conda activate ppo_latest

 gonzo  ~/a/packages  which python                                                                                     (ppo_latest)

/nohome/jaan/alecxe/anaconda3/bin/python

 gonzo  ~/a/packages  conda deactivate                                                                                 (ppo_latest)

 gonzo  ~/a/packages  which python

/nohome/jaan/alecxe/anaconda3/bin/python

Here the environment gets activated without an error. Then I want to check which python it is referring to it and it is not changing.., May I know why it is happening?

by (7.5k points)   | 1.2k views

1 Answer

0 votes

Solution :

I had also faced the similar issue in recent past. I found out the solution on it.

If you follow the following steps your issue will be resolved

As of conda 4.4, the command is as follows:

conda activate <envname>

This is the same for all the platforms. The procedure to add conda to the PATH environment variable for the non-Windows platforms, as well as to change the environment activation procedure, is given in detailed manner in the release notes for conda 4.4.0.

For conda versions older than 4.4 the command is as follows for different types of operating systems::

source activate <envname>

For Linux and macOS OR

activate <envname>

For Windows. You will have to remove the conda keyword from the command

by (36.1k points)  
2,227 questions
2,734 answers
59 comments
241 users