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.