0

I have a project in PyCharm in which a .py file imports pandas, but in the Context Actions the message

No module named 'pandas'

appears, although I do have pandas 1.3.0 installed in my venv as you can see in the picture below. What could be the reason for this?

Pandas installed, but no module found.

In the Terminal tab of PyCharm I can actually import pandas, but in the Python Console tab I can't.

Terminal tab

Python Console tab

pmahuzieru
  • 73
  • 6
  • what is your interpreter in PyCharm project? File->Settings->Project Interpreter, is it the venv you want? – Da Song Jul 20 '21 at 20:38
  • See if the following helps: https://stackoverflow.com/questions/38376351/no-module-named-pandas-in-pycharm – le_camerone Jul 21 '21 at 04:36
  • @DaSong I have selected my Conda Interpreter and in the package list `pandas` does appear. That's what you mean? Thanks for the answer! – pmahuzieru Jul 21 '21 at 14:56
  • double check with the following in your terminal: `conda env list`, then choose the env, `conda activate your_env`, then start python and import pandas – Da Song Jul 21 '21 at 16:43

0 Answers0