Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 927
ElenaPhys Avatar asked Jul 14 '16 14:07

ElenaPhys


People also ask

How do I activate pandas in PyCharm?

csv file onto PyCharm using Pandas? Pandas is a widely popular library used for data analysis and manipulation in Python. You need to import the pandas package to use it. To do so, go to File menu >> Settings >> Python Interpreter >> Search for pandas >> install package.

Why pandas is not installing in PyCharm?

If you are getting the same problem then you have to install first Cython and then install pandas. This will solve the problem. To install it run the below command for your specific python version.

Why it is showing no module named pandas?

The Python "ModuleNotFoundError: No module named 'pandas'" occurs when we forget to install the pandas module before importing it or install it in an incorrect environment. To solve the error, install the module by running the pip install pandas command.

How do I download pandas library in PyCharm?

Click the Python Interpreter tab within your project tab. Click the small + symbol to add a new library to the project. Now type in the library to be installed, in your example Pandas, and click Install Package . Wait for the installation to terminate and close all popup windows.


2 Answers

Have you select the project interpreter for your current project? https://www.jetbrains.com/help/pycharm/2016.1/configuring-python-interpreter-for-a-project.html

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

like image 166
Lisa Avatar answered Oct 06 '22 15:10

Lisa


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

like image 21
Mitchell Avatar answered Oct 06 '22 16:10

Mitchell