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