In pycharm import numpy/pandas encountered No module named pandas

Problem: After installing the numpy and pandas libraries with pip, an error is reported in import in pycharm.

Solution:

step1:选择File—>settings—>project:XXX—>project structure;

step2: Select the right add content root;

step3: Select the site-pachages folder under the python installation path;

step: click ok to confirm

Related Posts