2011-12-23 112 views
3

我試圖在Windows機器上安裝Django(我發誓,這不是我的錯)。 當談到MySQLdb的模塊,我不斷收到此錯誤:在Windows 7上安裝MySQL-python時出錯

Windows PowerShell 
Copyright (C) 2009 Microsoft Corporation. All rights reserved. 

PS C:\Users\ME> easy_install MySQL-python 
Searching for MySQL-python 
Reading http://pypi.python.org/simple/MySQL-python/ 
Reading http://sourceforge.net/projects/mysql-python/ 
Reading http://sourceforge.net/projects/mysql-python 
Best match: MySQL-python 1.2.3 
Downloading http://download.sourceforge.net/sourceforge/mysql-python/MySQL-python-1.2.3.tar.gz 
Processing MySQL-python-1.2.3.tar.gz 
Running MySQL-python-1.2.3\setup.py -q bdist_egg --dist-dir c:\users\ME\appdata\local\temp\easy_install-bl367m\MySQL-python-1.2.3\egg-dist-tmp-wgpnqn 
error: The system cannot find the file specified 

什麼問題?我也試着下載源和通過Python setup.py安裝,但錯誤依然存在(這是一個有點不同,壽):

Traceback (most recent call last): 
    File ".\setup.py", line 15, in <module> 
    metadata, options = get_config() 
    File "C:\Users\samuele.mattiuzzo\Downloads\Django_python_apps\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 

感謝所有提前!

回答

4

使用exe從here安裝。

我一直卡在那裏,這樣做等。

+1

感謝,它的工作(緩慢回覆對不起,聖誕節holydays了我的大部分時間) – 2011-12-26 20:23:35

+0

歡迎您。 – alonisser 2011-12-26 20:47:57