Solved

pip install fails for pandas

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

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Dictionaries contain key:value pairs. Which means a collection of tuples with an attribute name and an assigned value to it. The semicolon present in between each key and values and attribute with values are delimited with a comma.  In python we can…
Article by: Swadhin
Introduction of Lists in Python: There are six built-in types of sequences. Lists and tuples are the most common one. In this article we will see how to use Lists in python and how we can utilize it while doing our own program. In general we can al…
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…

762 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