Lin Ma
Lin Ma

Reputation: 10139

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

Upvotes: 3

Views: 1452

Answers (1)

su79eu7k
su79eu7k

Reputation: 7306

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

Upvotes: 1

Related Questions