Solved

pip install fails for pandas

Posted on 2014-01-21
2
1,944 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

The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

Question has a verified solution.

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

The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

695 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