2010-09-10 63 views
3

这里是我试图安装MySQL-python-1.2.3时得到的错误。有任何想法吗?试图安装MySQL-python-1.2.3但我得到一个错误

Traceback (most recent call last): 
    File "C:\Documents and Settings\Desktop\MySQL-python-1.2.3\setup.py", line 15, in <module> 
metadata, options = get_config() 
    File "C:\Documents and Settings\Desktop\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 

尝试将Windows XP计算机

回答

8

请看看这个页面:http://www.lfd.uci.edu/~gohlke/pythonlibs/并搜索“MySQL-python”。你会发现一些预编译的用于Windows的MySQL-python软件包。也许其中一个对你来说可以。

使用其中之一(用于Windows 7)是我发现使MySQL-python在Windows上工作的唯一方法。

+0

谢谢。这对我有效。它仍然令人沮丧,官方网站不会发布预编译版本的Python 2.7。我的意思是他们在网站上有2.4的预编译版本:S – Richard 2010-09-13 16:44:57

+0

不客气。这确实令人沮丧,并且让MySQL在我的机器上使用Python 7工作是一项令人厌烦的任务。 :-( – 2010-09-16 13:38:23

+0

给我一个大拇指是不够的,我不得不写“谢谢” – 2012-02-08 09:46:23

相关问题