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