TransWikia.com

Can't access Pandas

Stack Overflow Asked by Sash on November 24, 2021

Hi I am having major trouble with shell.
I am not able to change the path for pip and python.
Python 3.7 is downloaded elsewhere.
Pip has an unknown path. I tried upgrading pip but it stored a blob of code and I don’t know what to do with it.
Pandas not available on terminal (shell) which uses python 2.7.

Errors:
ImportError: No module named pandas
After pip install pandas I get the message: Successfully installed numpy-1.19.1 pandas-1.0.5 pytz-2020.1
I still get the message No module named pandas
please help. I have been really frustrated by this!

2 Answers

Try

pip3 install pandas

and if that doesn't work, then try

pip install pandas

EDIT:

It sounds like you should try to run your code using python myfile.py instead of python3 myfile.py

Answered by JD12 on November 24, 2021

Have you tried pip3 install yet?

pip could default to the installation of pip for python2 as well.

Finally, if it is doable in your system, you may uninstall python 2 completely as it is out of support anyway, this would save you a lot of headache in the future!

Answered by Samridh Tuladhar on November 24, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP