Python module compilation steps

Source: Internet
Author: User

The python module is a widely used computer language in practical application and has a certain understanding of its installation. However, you have some experience in installing the python module? If you want to know more about it, you can click the following article.

The latest version of the MySQL-python-1.2.3c1 does not have Windows version of the installer is said because the author does not use Windows and no longer maintain the Windows version), and simple use

 
  1. easy_install MySQL-python 

An error is reported. Therefore, we need to use version 1.2.2.

 
  1. easy_install "MySQL-python==1.2.2" 

Run the preceding command.

Self-compiled Process

1. Install setuptools

2. Install MySQL 5.1. Download the mb msi installation package. Do not select the essenessenversion because it does not contain the library files of the C program. Select custom install and Developer Components. If the file is correctly installed, the "include" folder is displayed in the installation path. For example, C: \ Program Files \ MySQL Server 5.1 \ include. contains a complete. h file.

3. Now and install

 
  1. Microsoft Visual Studio C++ Express 2008  

In this way, the C compiler can be obtained.

4. Open the command line under the account with the administrator privilege. Make sure that the command line window is opened after the software is installed.

5. Run the following command line:

 
  1. easy_install -b C:\temp\sometempdir mysql-python 

The above article introduces the practical application steps of the python module.

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.