• 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

Please log in or register to answer this question.

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 20 views
Problem : May I know why it is happening: Command not found error: your shell has not been properly configured to use 'conda activate'..
asked Mar 6 Wafa Abu Yousef 6.1k points
0 votes
1 answer 234 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
0 votes
1 answer 61 views
Problem: I was updating pandas (on windows 7) using: conda update pandas Accidentally closed the command window while updating. Now I cannot start spyder, and if I type conda in the command line, I get: "conda is not recognized as an internal or external command ... get from PyQt5.Qtwidgets import * importerror: DLL load failed: The specific module could not be found Any ideas how to solve this?
asked Dec 6, 2020 sasha 16.2k points
1 vote
1 answer 245 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, 2020 adamSw 11.3k points
0 votes
1 answer 365 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, 2020 alecxe 7.5k points
1 vote
1 answer 1 view
1 view
Problem: Why I got the error : url rewriting is not properly configured on your server.
asked 4 days ago MUHAMMAD MUNEEB 80k points
1 vote
1 answer 373 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, 2020 stewart 4k points
1 vote
1 answer 5 views
Problem: Why I got the error : the activity must be exported or contain an intent-filter. zsh: command not found: conda
asked Mar 3 Muneeb Saadii 125k points
1 vote
0 answers 21 views
v = tf.Variable(0) update = tf.compat.v1.assign(v, v+1) init_op = tf.compat.v1.global_variables_initializer() tf.compat.v1.disable_eager_execution() with tf.compat.v1.Session() as session: session.run(init_op) print(session.run(v)) for _ in range(3): session.run(update) print(session.run(v))
asked Jun 21, 2020 roshan
0 votes
1 answer 31 views
Problem: I am attempting to put together a simple c++ test project that uses an embedded python 3.2 interpreter. The project builds fine but Py_Initialize raises a fatal error: Fatal Python error: Py_Initialize: unable to load the file system codec LookupError: no codec search functions registered: can't find encoding
asked Feb 15 Mashhoodch 13k points