Solved

pip install fails for pandas

Posted on 2014-01-21
2
1,929 Views
Last Modified: 2014-01-23
Hi,

I've successfully installed python packages using pip on windows 7 (64 bit) in the command shell.  However, I tried to install pandas but get the following error:

distutils.errors.DistutilsError: Setup script exited with error: Unable to find vcvarsall.bat

I remember having this problem in the last few years some time, but I don't remember the solution.  I think the issue is that I just installed Matlab, which installed a version of MS Visual C++ redistributable. I now have version 2005, 2008, 2010 and 2012 (32 and 64 bit versions of all but 2005).

Somehow I think vc++ is causing an issue.

Anyone know a solution?
0
Comment
Question by:ugeb
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 17

Accepted Solution

by:
gelonida earned 500 total points
ID: 39799307
pandas seems to be a package, that contains C source code.
Thus installing it requires a C/C++ compiler (Visual Studio / MingW) on your machine.

RThe visualC runtime dlls will not be sufficient.

You might either search on pypi for a binary installer. download it and install an already compiled version or try to install a compiler, all other required dependencies and give it a shot.

Compiling python packages under windows is mostly quite painful.
0
 
LVL 11

Author Closing Comment

by:ugeb
ID: 39805738
I've had this problem before and fixed it without having to download an executable.  It's preferable to fix it for all potential problems and not just get around it for one case.  However, I don't have time to mess with it now so I'll have to live with the executable.
Thanks.
0

Featured Post

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Here I am using Python IDLE(GUI) to write a simple program and save it, so that we can just execute it in future. Because when we write any program and exit from Python then program that we have written will be lost. So for not losing our program we…
The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
The viewer will learn how to count occurrences of each item in an array.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

732 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question