Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pandas import error using Pycharm

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.

enter image description here

enter image description here

enter image description here

Edit-1,

Post my PyCharm version and interpreter screen snapshot.

enter image description here enter image description here

Edit-2,

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

enter image description here

like image 783
Lin Ma Avatar asked Jan 28 '26 22:01

Lin Ma


1 Answers

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

Console Configuration enter image description here

Run Configuration enter image description here enter image description here

like image 54
su79eu7k Avatar answered Jan 31 '26 21:01

su79eu7k



Donate For Us

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