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

Question:

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

Asked By: Stacey

||

Answers:

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.

Answered By: Henry

you can also use the

~$ pip3 install pandas

these is for anyone running it now cause we already have the version 3 of pip

Answered By: EtDude
Categories: questions Tags: , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.