安装python-MySQLdb出错,如何解决?
我的python2.6已经安装过了setuptool.
我在sourceforge上面下载了一个MySQL-python-1.2.3,在windows的命令行下面安装失败:
D:\software\MySQL-python-1.2.3>python setup.py install
Traceback (most recent call last):
File "setup.py", line 15, in <module>
metadata, options = get_config()
File "D:\software\MySQL-python-1.2.3\setup_windows.py", line 7, in get_config
serverKey = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE, options['registry_key'])
WindowsError: [Error 2] The system cannot find the file specified
问题出在哪里?
[解决办法]
错误说你没装vc。不会看错误提示嘛,最好装别人编译好的,这样你只要从mysql下connector/c的开发包(运行时需要里面的的那个dll,预编译版本一般都是动态链接的)