Skip to content Skip to sidebar Skip to footer

How Do I Get Python To Import Pandas?

I installed Python 3.5.1 from www.python.org. Everything works great. Except that you can't install pandas using pip (it needs visualstudio to compile, which I don't have). So I in

Solution 1:

I have successfully installed pandas for a Windows 32 bit version Python 3.4 with pre-complied code (no Visual Studio required) using the website:

http://www.lfd.uci.edu/~gohlke/pythonlibs/#pyyaml

There is link for Python 3.5 pre-complied code at this site as well, but I have not tested it.

Download the code you want to a directory on your machine.

Using your Windows CMD.exe, go to your python directory and enter:

Python -w pip install "YourDirectory/pandas-0.18.1-cp35-cp35m-win32.whl"

OR

Python -w pip install "YourDirectory/pandas-0.18.1-cp35-cp35m-win_amd64.whl

Choose the version based on the version of Python you have have, 32 bit or 64 bit.

Good Luck!

Solution 2:

Anaconda has included one version of Python with it. You have to change your system environment path with Anaconda's instead of the former one to avoid conflict. Also, if you want to make the whole process easy, it is recommended to use PyCharm, and it will ask you to choose the Python interpreter you want.

Post a Comment for "How Do I Get Python To Import Pandas?"