There is no module called Pandas in Jupyter Notebook
I know there are a lot of questions on this topic, but none of them worked for me, not here, and not on github.
I already installed anaconda2 for macOS a few days ago. I know pandas comes with Anaconda by default, last year I didn’t have any problems with any python package on Ubuntu, but now I’m having a strange issue.
When I run the jupyter notebook and import pandas as pd
, I get the error: no module named pandas
. It’s not just about pandas, all libraries don’t work.
When I try to install pandas using conda, it returns me Requirement already satisfied
. The same goes for pips.
Also, I tried running the jupyter notebook with the full path to the jupyter package, but to no avail.
There may be a problem with PATH, but I’m not very good at it and I’m not sure how to do it.
But when I run iPython in the terminal, everything
works fine when I run python in the terminal, just doesn’t work in jupyter notebook.
> python --version
: Python 2.7.15 :: Anaconda, Inc.
> which python :/anaconda2/bin/python
> which jupyter-notebook:
/anaconda2/bin/jupyter-notebook
> conda env list:
conda environments:
base * /anaconda2
Thank you in advance for your help.
Solution
Try this in Jupyter Cell:
!pip install pandas