在Windows 7上安装Python MySQLdb时出错
作者:互联网
请看下面的stacktrace,这是权限问题吗?
C:\Project\MySQL-python-1.2.3>python setup.py
Traceback (most recent call last):
File "setup.py", line 15, in <module>
metadata, options = get_config()
File "C:\Project\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
C:\Project\MySQL-python-1.2.3>
Python版本是(ActiveState)2.7.1
解决方法:
MySQL是一个先决条件,如MySQLDb的README中所述
标签:python,windows-7,mysql-python,activestate 来源: https://codeday.me/bug/20190626/1296441.html