我在使用python 2.7版本的Windows環境中運行這個版本,而運行下面會出現錯誤,運行pip install mysql-python for testproject也會給出類似的錯誤。我試過從http://www.codegood.com/archives/4下載並運行安裝程序,但它說Python版本2.6需要,但在註冊表中找不到。有些資源說mysql_config文件丟失了,是這種情況嗎?失敗的pip安裝mysql-python
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
謝謝。我降級到Python 2.6,那看起來很好。 – user1076881 2012-03-03 21:01:19