pythonpandaspippycharmprogram-entry-point

Unable to install Pandas on Pycharm, Recieving error


I am trying to get Pandas to work on my Pycharm environment. I have installed it through the command:

pip install pandas

But when I run the code in my environment, import pandas as pd I get the error:

No module named 'pandas'

When I try to install it using the project interpreter in Pycharm, I get the error:

error occurred when installing package 'pandas'

EDIT: I didn't state what happens when I look into this error. I click 'Details'. Then it says:

AttributeError: module 'pip' has no attribute 'main'

Perhaps this may tell us something about the issue


Solution

  • The error is identical to the one reported here Module pip has no attribute 'main'

    For pip version 10.x and higher you should update Pycharm to 2018.2.

    Or simply run pip in a terminal outside of Pycharm