-1

I am trying to install Pandas for Python 3.4 for a Django project, however I get the error Unable to find vcvarsall.bat.

How can I install Pandas on Python 3.4 in Windows?

Ranajit
  • 51
  • 2
  • 5
  • Do you want to know how to set up your computer to build Pandas from source, or how to install Pandas without having to build it from source? – abarnert May 10 '15 at 04:31
  • If the first, it's a dup of many questions here; I think [this one](http://stackoverflow.com/questions/2817869/error-unable-to-find-vcvarsall-bat) is the canonical answer, even though it may be a bit out of date. – abarnert May 10 '15 at 04:32

4 Answers4

3

The easiest way to install Pandas, like almost every other package for Python, is with pip.

Many packages (including Pandas) require a compiler, and a bunch of third-party DLLs, and many Windows users don't know how to deal with that. That's exactly why the "wheel" format was created: so packages can upload pre-built binaries.

Not every project has pre-built binary wheels for Windows yet. But you can look at Christoph Gohlke's site and find wheels for all of the most popular ones. Just follow the instructions on that page to download the wheel file and install it with pip.

But in the case of Pandas, you don't have to do that. They have wheels on their download page, and uploaded to PyPI. And the documentation tells you to use these. (Well, it first suggests you use Anaconda/Miniconda, but if you want a stock Python, use pip and the packages on PyPI.)

abarnert
  • 354,177
  • 51
  • 601
  • 671
1

Be aware that different versions of Python will need different version of Visual C++. I use Python 3.4 and it worked with Visual C++ 10. Most of what I read recommended version 8, which probably works with 2.7, but didn't work with 3.4

0

A very simple way of doing it would be to use pip, as suggested by abernert. The command to be entered is :

pip install pandas You will find pip in the scripts folder in your python folder. (eg. c:\python34\Scripts). numpy will also be installed during this process.
Community
  • 1
  • 1
dmdip
  • 1,665
  • 14
  • 15
0

I know this is late, but I'll just leave this here, since it is very similar.

Mo Aboulmagd
  • 131
  • 2
  • 10