Not a Conda Environment

i am trying to launch conda from the terminal on windows.

From the relevant folder ('Desktop > Course'), i installed the jupyter notebook ('pip install jupyter notebook') and 'nb_conda' ('conda install nb_conda'). Then i open the jupyter notebook by entering the command 'jupyter notebook'.

So far so good.

But when i go in the 'Conda' tab on the jupyter notebook, after 2 second i get the message ''EnvironmentLocationNotFound: Not a conda environment: Desktop > Course'

Why is that ?

1

5 Answers

It worked for me as well on Windows 10.

Some time ago, I installed Python. Later on, I installed Anaconda to run pandas_datareader, etc. It didn't work. Reinstallation didn't help, either. Then I cleaned all installation of Python and Anaconda and started from scratch.

I made a fresh new installation of Anaconda:

  1. Then I ran the command line as admin
  2. I proceed:
    conda update conda
    conda update anaconda-navigator
    
  3. I went to "Environments" in the Anaconda Navigator
  4. Then clicked on "Update Index" in the middle top
  5. I waited for it to finish
  6. Then, I went back to "Home" and launched the Jupyter

It seems like the environment was inconsistent, at least that was the message of conda update.

1

Not saying this is the right answer but this worked for me:

  1. I went to "Environments" in the Anaconda Navigator
  2. Then clicked on "Update Index" in the middle top
  3. Waited for it to finish and went back to "Home"

Was able to launch Jupyter Notebook just fine.

There are two solutions-

1 - (not personally recommended) This is because you have probably not created the conda environment. For creating a new environment with all the dependencies look here-

2 - (personally recommended) Install the complete anaconda distribution from here- (check for windows and download for the python of your choice). After that either you can create a virtual environment and launch your jupyter from there or directly launch from the base environment. This will take care of all the dependencies and also it will help in all your future endeavors.

While following 2nd suggestion, make sure to uninstall all your previous python installations. Give it a fresh installation and while installation make sure to tick the box where it asks for adding conda to the system path.

Good Luck.

0

You could try using the command prompt from anaconda. This might solve your problem

I had the Not a conda environment error when re-installing conda while having the environment activated.

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Sophia Al-Mansoor

Sophia Al-Mansoor

Global Business & E-Commerce Reporter

Sophia analyzes international trade, startup ecosystems, retail transformation, and supply chain logistics for modern digital publications.

Share this article
Twitter Facebook Pinterest