0

I got this err: import pandas as pd ModuleNotFoundError: No module named 'pandas'

My versions installed are: Python ver 3.9.7
pandas 1.3.3 pip 21.2.4
PyCharm 11.0.12

I can see pandas installed in pycharm, but when I am importing it I got that err. Any clue? Thank you

bad_coder
  • 11,289
  • 20
  • 44
  • 72
MO Taar
  • 1
  • 2

2 Answers2

0

Try to reinstall pandas package.

type = pip install pandas

wait for some time and then your panda package will get installed

  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Oct 06 '21 at 19:17
0

I tried this solution, and it worked:

The fix is simple: Use the PyCharm installation tooltips to install Pandas in your virtual environment—two clicks and you’re good to go!

First, right-click on the pandas text in your editor:

Second, click “Show Context Actions” in your context menu. In the new menu that arises, click “Install Pandas” and wait for PyCharm to finish the installation.

Source: https://blog.finxter.com/how-to-fix-importerror-no-module-named-pandas/

MO Taar
  • 1
  • 2