• Register
0 votes
2.3k 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?

7.5k 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

36.1k points

Related questions

0 votes
1 answer 43 views
43 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 42 views
42 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 10.9k points
0 votes
2 answers 420 views
420 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 130 views
130 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
0 votes
1 answer 42 views
42 views
Problem : I have recently upgraded to a latest GAM release from https://git.io/gamreleases and I still have the issue. I am typing a command as described in a GAM Wiki at https://github.com/jay0lee/gam/wiki Full steps to reproduce the issue are as below : gam ... disabled for this app This app has not been verified yet by Google in order to use Google Sign In&rdquo; How can I fix above error ?
asked Jan 23 jwilliam 3.9k points