64-bit Win7 using vs2013 for python3.4 installation pycrypto-2.6.1 plug-in unable to find Vcvarsall.bat exception solution

Source: Internet
Author: User

Problem Description:

In 64-bit Win7, use vs2013 to install pycrypto-2.6.1 plug-in for python3.4.2 unable to find Vcvarsall.bat.


Problem Analysis:

1, source code analysis, find the Python source Code distribut module appears unable to find Vcvarsall.bat location, in the msvc9compiler.py file Find_vcvarsall the program appears. The analysis shows that Python uses Python's own vs-compiler number (3.4.2 version is vs2010) to obtain the corresponding Vcvarsall.dat file path, when it is not found in the registry will find the value of Vs100comntools in the system environment variable, if the lookup fails will be an error.


Solution:

If Vs100comntools is not present in the system environment variable, create a new one and set the value to the Vcvarsall.dat file directory in vs2013 (installation directory +VC), for example D:\Programing\VS2013\VC. Then reinstall the pycrypto-2.6.1. Other versions deal with similar ideas.

The idea is to look at the error output and add debug code to the Python source, such as raise exception to view the intermediate variables before continuing with the debug analysis.

64-bit Win7 using vs2013 for python3.4 installation pycrypto-2.6.1 plug-in unable to find Vcvarsall.bat exception solution

Related Article

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.