How to install numpy

Source: Internet
Author: User

The system environment is win7 (64bit) + python3.4 (64bit) + numpy1.82 + vs2012

1. If the 32bit EXE installed on SourceForge is used, the 'python version ** required, which was not found in the Registry 'prompt will be displayed '.

The reason is that the python installation is 64-bit (not sure), but it does not exist in the registry,

2. manually compile numpy for installation. In the numpy directory, the 'python setup. py built' prompt will be 'unable to find vcvarsall. bat ',

The reason is that python uses vs2008 by default. Open '<Python installation directory> \ Lib \ distutils \ msvc9compiler. py' to find the default search directory

There is indeed no vcvarsall file. If you move vcvarsall to this directory, the third problem occurs. The general solution is to use mingw.

The best solution is to find the following line in the msvc9compiler. py file:

 
Vc_env = query_vcvarsall (version, plat_spec)

To:

 
Vc_env = query_vcvarsall (11.0, plat_spec)
My version is 11.0 for vs2012.

Specific reasons for this change, refer to the http://blog.csdn.net/ren911/article/details/6448696

However, after this change, 4th problems will occur.

3. c: \ python33 \ Lib \ distutils \ msvc9compiler. py ", line 287, in query_vcvarsall

Raise valueerror (STR (List (result. Keys ())))

Valueerror: ['lib', 'include ', 'path']

This problem cannot be effectively solved. You can avoid this problem by modifying the version in two ways.

4. runtimeerror: Broken toolchain: cannot link a simple C program

In msvc9compiler. py, change the value assignment statement of minfo to minfo = none.


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.