Stacey
Stacey

Reputation: 5107

ModuleNotFoundError: No module named 'pandas' - when I have pandas already installed

I am trying to run some Python code via a Bash script (launch.sh). It looks like the Bash script starts to run, but then I get the error returned:

`ModuleNotFoundError: No module named 'pandas'

Below you can see that I have Pandas installed - I have version 0.24.1, so I am wondering why I am getting the Module not found error for Pandas when I have it installed?

Enter image description here

Upvotes: 0

Views: 448

Answers (1)

Henry
Henry

Reputation: 643

Now on your machine Pandas is installed ...... but for Python 2, I think you want to use Python 3.

You have to type in the terminal:

~$ python3 -m pip install pandas

If it returns an error then:

https://bootstrap.pypa.io/get-pip.py <- copy and run this (Python 3)

Or install pip with whatever method you want.

Upvotes: 1

Related Questions