This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Matt.Hickford
Recipients Matt.Hickford, cdavid, n, tarek
Date 2013-07-24.09:00:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1374656444.23.0.0310379056345.issue2943@psf.upfronthosting.co.za>
In-reply-to
Content
( Upstreamed from Pip https://github.com/pypa/pip/issues/942 )

There are lot of Python users on Windows. If they succeed in installing a package manager (a struggle), this is typically their first experience with it

    $ pip install numpy

    blah blah blah

    Error: Unable to find vcvarsall.bat

The misery is compounded by the cryptic error message. They don't know whether the problem with their computer, the specific package, or pip generally. Let alone how to fix it.

You and I know this happens because the package install involves building some C code from source and the user doesn't have a C compiler installed. The fix is to install mingw32 (or Visual Studio) and edit distutils.cfg to specify to use that compiler. 

Thus, it would be really helpful to print a message after 'error: unable to find vcvarsall.bat' such as

> Installing this package requires a C compiler. To fix this error, follow http://stackoverflow.com/q/2817869/284795
History
Date User Action Args
2013-07-24 09:00:44Matt.Hickfordsetrecipients: + Matt.Hickford, tarek, cdavid, n
2013-07-24 09:00:44Matt.Hickfordsetmessageid: <1374656444.23.0.0310379056345.issue2943@psf.upfronthosting.co.za>
2013-07-24 09:00:44Matt.Hickfordlinkissue2943 messages
2013-07-24 09:00:43Matt.Hickfordcreate