Go: python-Resolve "Unable to find Vcvarsall.bat" error

Source: Internet
Author: User

Transferred from: Http://www.douban.com/note/361230278/?type=like

Reference: http://my.oschina.net/zhangdapeng89/blog/54407 Comment

-Python 2.7 will search for Visual Studio 2008.
If you do not have this version on your computer, for example, only:
1.Visual Studio 2010, executed inside CMD:



SET vs90comntools=%vs100comntools%

2. Visual Studio 2012:

SET vs90comntools=%vs110comntools%

And then it's going to work.

-If VS2010 or VS2012 is installed, you can use the following method to solve the problem:
If you have Visual Studio installed, execute >
SET vs90comntools=%vs100comntools%
or with Visual Studio installed >
SET vs90comntools=%vs110comntools%
Python 2.7 looks for VS2008 compiled at setup.
For Windows Installations:while running setup.py
Installations Python 2.7 Searches for an installed Visual Studio 2008.
You can trick Python-newer Visual Studio by setting correct path
In Vs90comntools environment variable before calling setup.py.



Original link: http://i.xlanlab.com/2793.html

Go: python-Resolve "Unable to find Vcvarsall.bat" error

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.