簡體   English   中英

在Windows 7機器上安裝MySQL-python時出錯

[英]Error installing MySQL-python on a windows 7 box

我正試圖在Windows機器上安裝django(我發誓,這不是我的錯)。 說到mysqldb模塊,我不斷收到這個錯誤:

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

提前謝謝!

這里安裝exe。

我一直被困在那里,完成了那些......

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM