First through PIP install Mysql-python error
Later download installation, error:
File "setup.py", line <module>
metadata, Options = Get_config ()
File "F:\devtools\MySQL-python-1.2.3\setup_windows.py", Line7, in Get_config
Serverkey = _winreg. Openkey (_winreg. HKEY_LOCAL_MACHINE, options[' Registry_ke
Y '])
Windowserror: [Error 2] The system cannotfind the file specified
: https://pypi.python.org/pypi/MySQL-python/
Unzip directly after downloading the Mysql-python-1.2.5.zip file. Enter the mysql-python-1.2.5 directory:
>>python setup.py Install
Workaround:
In fact, the analysis of the code, found just looking for MySQL installation address only modified setup_windows.py as follows
Note Two lines, add a line, for the first step MySQL installation location
#serverKey = _winreg. Openkey (_winreg. hkey_local_machine,options[' Registry_key ')
#mysql_root, dummy = _winreg. QueryValueEx (Serverkey, ' location ')
Mysql_root = r "F:\devtools\MySQL\MySQL Server 5.5"
Then error: unable to find Vcvarsall.bat
Finally go
Christoph Gohlke of the University of California, Irvine offers a large number of Python unofficial plug-in module installation packages:
www.lfd.uci.edu/~gohlke/pythonlibs/
Issues encountered with Python installation Mysql-python