How to install numpy and nltk

Source: Internet
Author: User
Tags nltk

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

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.