Kanika Singhal Kanika Singhal - 22 days ago 10
Python Question

python: after installing anaconda, how to import pandas

I have installed anaconda. Now when i am trying to run

import pandas as pd


I am getting the following error

Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import pandasFile
ImportError: No module named pandasFile


It is my first day to python. I cannot figure out how to fix it. I am hoping that I have to change some path somewhere. I know it can be a silly question to post here.

Answer

If you are facing same problem as mine. Here is the solution which works for me.

  1. Uninstall every python and anaconda.
  2. Download anaconda from here "http://continuum.io/downloads" and only install it (no other python is needed).
  3. Open spyder and import.
  4. If you get any error, type in command prompt

    pip install module_name

I hope it will work for you too