简体   繁体   中英

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?

在此处输入图片说明

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM