我在Windows环境中使用python版本2.7运行此程序,而运行下面的程序会出现错误,运行pip install mysql-python for the testproject也会出现类似的错误。我尝试从http://www.codegood.com/archives/4下载并运行安装程序,但它显示需要Python2.6版,但在注册表中找不到。有些资源说mysql_config文件丢失了,是这样的吗?
C:\django\testproject\build\MySQL-python>setup.py build
Traceback (most recent call last):
File "C:\django\testproject\build\MySQL-python\setup.py", line 1
metadata, options = get_config()
File "C:\django\testproject\build\MySQL-python\setup_windows.py"
et_config
serverKey = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE, option
y'])
WindowsError: [Error 2] The system cannot find the file specified发布于 2012-03-04 04:04:16
你可能会在这里找到你需要的东西:http://www.lfd.uci.edu/~gohlke/pythonlibs/#mysql-python
它有一个针对Python 2.7的预编译版本
https://stackoverflow.com/questions/9077890
复制相似问题