I have issues of import pandas using Pycharm, but no issue of import pandas from command line, and I thought it might be caused by I installed multiple Python environment on my Mac. Wondering how to check on command line, which Python environment is used -- so that I can change my Pycharm environment according to the same environment which command line is using.
BTW, prefer to use Python 2.7.
Post screen snapshot for convenience.



Edit-1,
Post my PyCharm version and interpreter screen snapshot.

Edit-2,
I only have Default Setting under File menu, no item is called Setting.

You have to set proper python version that you want to use in pycharm at both console and run configurations.
Console Configuration

Run Configuration

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With