Python learning-installing mysql-python module and mysqlpythonwindows in windows

Source: Internet
Author: User

Python learning-installing mysql-python module and mysqlpythonwindows in windows

I recently learned how to use Django. I saw that mysql-python module is required to connect to the database.

Then I went to download the package. I started to use pip for installation and found that an error has been reported.

The error message returned is: The vcvars32.bat file cannot be found, probably because visual c ++ 2008 is not installed on my computer, and I installed it as 2013

Tried

SET VS90COMNTOOLS=%VS120COMNTOOLS%
Still not good

Then I want to install visual c ++ 2008, because I need to install a 64-bit library when installing a 64-bit computer, no 64-bit source code library is reported

I am speechless... I don't think python is so bad.

Finally, a 64-bit visual c ++ 2008 is re-installed.

Finally

...... An error is returned.

Feedback C: \ Program Files (x86) \ Microsoft Visual Studio 9.0 \ VC \ bin \ amd64 \ c1.exe returns 2 exit (2)


Finally, I found it was a module problem (someone said it was a mysql problem and I was always fooled to uninstall and install it many times ...)

I can't download it on the official https://pypi.python.org/pypi/MySQL-python/, and I found it strange that there is no 64-bit version on the official website .....

Direct pip, easy_install does not work

I downloaded mysql-python-1.2.3.win-amd64-py2.7.exe directly on the csdn.

Link: http://download.csdn.net/detail/weibin0320/6663763




 



Related Article

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.