AMGMNPLK
AMGMNPLK

Reputation: 2114

I can't install Jupyter and Matplotlib in my anaconda env

I have an environment of Anaconda (apart of root) and I'm trying to install this two libraries with no success. I tried:

I tried to install other libraries with success (sympy, for example), but I didn't achieve it with Jupyter and Matplotlib.

The root environment has this libraries, but I don't know if I could import from there. How I should to proceed?

Thank you very much

Upvotes: 3

Views: 3737

Answers (2)

Tejas Shetty
Tejas Shetty

Reputation: 715

I seem to have got it probably.

TLDR: You probably installed jupyter in your base (or root in your language) environment. I have copied over a small snippet of your messages.

Install with conda install jupyter and conda install matplotlib in the console and cd where the environment is located. The console made its process and it said that both libraries were already installed. I check it in the libraries list of Anaconda Navigator and it doesn't appear.
(base) C:\Users...>cd C:\Users\Alvaro\Anaconda3\envs\tensorflow

(base) C:\Users...\Anaconda3\envs\tensorflow>conda install matplotlib Solving environment: done

All requested packages are already installed.
(base) C:\Users\Alvaro\Anaconda3\envs\tensorflow>conda install jupyter Solving environment: done


Now I am assuming that the above packages really got installed properly.

Why I am doubtful.Solving environment: done is not the last line after a package gets installed.

If you see the first line of each of these messages they all begin with base. This indicates that the packages got installed in the base environment, not your `TensorFlow environment.

So you really won't find them in your `TensorFlow environment.

It would help if you also answer my questions in the comments below the question.

Upvotes: 0

Andy
Andy

Reputation: 450

This blog post explains how to install jupyter into a virtualenv (Disclaimer: I didn't come up with it myself): http://anbasile.github.io/programming/2017/06/25/jupyter-venv/

In summary:

$ python -m venv projectname
$ source projectname/bin/activate
(venv) $ pip install ipykernel
(venv) $ ipython kernel install --user --name=projectname

Upvotes: 0

Related Questions