dddd_y
dddd_y

Reputation: 85

import error: No module named Pandas Anaconda

I have Python2 and Python3 both installed in my laptop. I am trying to run pandas in Jupyter Notebook, but it shows an error message saying:

No module named 'pandas' 

I have tried to install pandas in both python2 and python3 using:

pip3 install pandas

and

conda install pandas

both methods successfully installed the package but when I tried to import pandas, it shows the Error message again. I then tried:

!pip3 install pandas

but then it shows:

Requirement already satisfied: pandas in c:\users\fusuy\appdata\local\programs\python\python38-32\lib\site-packages (1.0.3)
Requirement already satisfied: pytz>=2017.2 in c:\users\appdata\local\programs\python\python38-32\lib\site-packages (from pandas) (2019.3)
Requirement already satisfied: python-dateutil>=2.6.1 in c:\users\appdata\local\programs\python\python38-32\lib\site-packages (from pandas) (2.8.1)
Requirement already satisfied: numpy>=1.13.3 in c:\users\appdata\local\programs\python\python38-32\lib\site-packages (from pandas) (1.18.1)
Requirement already satisfied: six>=1.5 in c:\users\appdata\local\programs\python\python38-32\lib\site-packages (from python-dateutil>=2.6.1->pandas) (1.14.0)

What should I do now?

Upvotes: 1

Views: 16576

Answers (2)

Robert Braga
Robert Braga

Reputation: 31

I had the same problem here. I realize that I was trying to run the script without write python before the name script. Beginners mistake... at least on my case

Upvotes: 2

Peter
Peter

Reputation: 12375

Python is case sensitive. No module named 'Pandas' doesn't mean there is no module 'pandas'. Try: import pandas as pd. Besides that I wonder that conda install pandas was working, since your Python paths don't look like an Anaconda installation. However, if you're using conda, you first need to conda activate an environment before you can use it.

Upvotes: 5

Related Questions