No module named 'pandas' in Pycharm

I read all the topics about, but I cannot solve my problem:

 Traceback (most recent call last): File "/home/.../.../.../reading_data.py", line 1, in <module> import pandas as pd ImportError: No module named pandas 

This is my environment:

Ubuntu 14.04

Pycharm version: 2016.1.4

Python version: 2.7.10

Pandas version: 0.18.1

Pandas works in Anaconda, in Jupyter too. Anyone could suggest me how to fix the problem?

0

4 Answers

Have you select the project interpreter for your current project?

follow this link, check whether pandas listed in the packages.

3

you can add a new project interpreter if you are using PyCharm ( IDE) . I install Anaconda first.

1) go to File and click on Setting 2) go to project XXX ( right below Version Control) 3) click project interpreter 4) click the top right button ( lined up with project interpreter )

add new project interpreter - Anaconda3/python.exe

add new project interpreter - Anaconda3/python.exe

0

YOu are missing the libraries / Packages should be included in your project interpreter. add the libraries there all will be fine.

For me the solution was to delete some __init__.py files in sub folders, e.g. src/site/__init__.py

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like