The system environment is win7 (64bit) + python3.4 (64bit) + numpy1.82 + vs2012
1. Assume that the 32bit EXE installation compiled on SourceForge will prompt 'python version ** required, which was not found in the Registry '.
The reason is that the python installation is 64-bit (not sure), but it does not exist in the examples table,
2. manually compile numpy for installation. In the numpy folder, 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 folder> \ Lib \ distutils \ msvc9compiler. py' to find the default search folder.
There is indeed no vcvarsall file. If you move vcvarsall to this folder, 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)
Changed:
vc_env = query_vcvarsall(11.0, plat_spec)
My version is vs2012, and the corresponding version is 11.0.
Detailed why such change, exam 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. We 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.
5. Because 64bit-python is installed, we recommend that you do not use 64bit python on the official website because you have various problems installing nltk on the Internet,
So I checked a lot of installation tutorials, but unexpected build and install didn't have any problems.
How to install numpy and nltk