也可以使用如下方式進行安裝。windows7 64 bits 安裝 MySQL-python-1.2.4b4.win32-py2.7.exe安裝時提示需要python2.7,但是此時python2.7已經新增到環境變數中,要解決這個問題,可以使用如下的方法:在D盤新建register.py的檔案,內容如下:# # script to register Python 2.0 or later for use with win32all # and other extensions that require Python registry settings # # written by Joakim Loew for Secret Labs AB / PythonWare # # source: #
也可以使用如下方式進行安裝。windows7 64 bits 安裝 MySQL-python-1.2.4b4.win32-py2.7.exe安裝時提示需要python2.7,但是此時python2.7已經新增到環境變數中,要解決這個問題,可以使用如下的方法:在D盤新建register.py的檔案,內容如下:# # script to register Python 2.0 or later for use with win32all # and other extensions that require Python registry settings # # written by Joakim Loew for Secret Labs AB / PythonWare # # source: #
http://www.pythonware.com/products/works/articles/regpy20.htm
# # modified by Valentine Gogichashvili as described inhttp://www.mail-archive.com/[email protected]/msg10512.html
import sys from _winreg import *