• Register
0 votes

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)


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

 gonzo  ~/a/packages  which 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?

6 5 3
7,540 points

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

9 7 4
38,600 points

Related questions

0 votes
1 answer 82 views
Problem : I have recently installed the Anaconda 3 4.4.0, 32 bit on my Windows 7 Professional machine and also imported NumPy and Pandas on Jupyter notebook but facing following issue 'conda' is not recognized as an internal or external command, operable program or batch file.
asked Nov 14, 2019 peterlaw 6.9k points
1 vote
1 answer 103 views
Problem: Well, I have installed the seaborn package in my system by using conda install seaborn command. While I am trying to import the package in my script it shows an error ImportError: No module named seaborn Although the package has already installed on my system. I am ... you please shed some light on this, why I met with this error? I am looking for a solution to this problem. Thanks.
asked May 15 adamSw 11.3k points
0 votes
2 answers 690 views
Problem : On installing Anaconda on Ubantu getting below Python error on miss-typed commands fatal python error: py_initialize: unable to get the locale encoding
asked Oct 21, 2019 peterlaw 6.9k points
0 votes
1 answer 220 views
Problem : When I wanted to install my module 'pymc' through the anaconda environments, it showed me the below error message: UnsatisfiableError: The following specifications were found to be in conflict: · blaze -> pyyaml -> python[version='>=2.7,<2.8.0a0'] -> vc=9 · blaze -> ... 2.7.14, and I also installed anaconda 1.6.9 on the Windows. I am very new to Python. How can I resolve the above error?
asked Jan 10 alecxe 7.5k points
1 vote
1 answer 96 views
Problem : Currently I am learning anaconda and virtualenv. I want to start my virtual env using the virtualenv but I am facing below error: Already using interpreter /Users/pkilcrease/anaconda/bin/python3 Using base prefix '/Users/pkilcrease/anaconda' New python ... and virtualenv, but unable to fix the above error. Looking for experts advice for fixing above anaconda and virtualenv error.
asked May 6 stewart 4k points