No module named 'pandas' in Pycharm
Solution 1
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.
Solution 2
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
ElenaPhys
Updated on January 08, 2022Comments
-
ElenaPhys over 2 years
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?
-
andrew almost 8 yearsThe OP should make sure that Anaconda is the selected interpreter. That environment will include Pandas.
-
GBGOLC almost 7 yearsWorks a treat: From the PyCharm menu system: File -> Settings Project: YourProjectName -> Project Interpreter -> Select from the drop down list and choose Anaconda and click OK. (It may take a few moments to update in background).
-
srboisvert over 4 yearsIf anyone is looking for an updated pycharm 2019 answer: jetbrains.com/help/pycharm/configuring-python-interpreter.html