MySQL-Python(MySQLdb)是known to work with PyPy。如何做你让它工作?MySQL-Python与PyPy
我试图downloading it和安装:
C:\dev\Installs\MySQL-python\MySQL-python-1.2.3>pypy setup.py install
Traceback (most recent call last):
File "app_main.py", line 51, in run_toplevel
File "setup.py", line 15, in <module>
metadata, options = get_config()
File "C:\dev\Installs\MySQL-python\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.
然后我试图下载这似乎已经安装OK了ctypes implementation,但是尝试使用它了:
...
File "C:\pypy-1.7\site-packages\django\db\backends\mysql\base.py", line 14, in <module>
raise ImproperlyConfigured("Error loading MySQLdb module: %s" % e)
ImproperlyConfigured: Error loading MySQLdb module: Can't find a libmysqlclient
我在在这一点上的损失。我如何使它工作
关于你的第一个错误的事情:看看site.cfg和setup.cfg中mysqldb的所有路径。其中一些在Windows 32位中存在不正确的默认值(“(x86)”,错误的路径等)。那还是mysql的错误版本。如果你明白了,pypy + MySQLdb仍然无法在windows上运行,请让我知道原因。 – fastmultiplication 2013-02-10 08:55:34