Die Installation von MySQL-python in virtualenv auf Windows 7
Ich versuche, zu installieren, MySQL-python, die in meinem virtualenv (Windows 7 32b + Python 2.7.3), aber leider nach Befehl:
pip install MySQL-python
Bekomme ich Fehlermeldung:
Install packages failed: Error occurred when installing package MySQL-python.
The following command was executed:
packaging_tool.py install --build-dir C:\Users\Grzegorz\AppData\Local\Temp\pycharm-packaging3577041299153334552.tmp MySQL-python
The error output of the command:
Downloading/unpacking MySQL-python
Running setup.py egg_info for package MySQL-python
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "C:\Users\Grzegorz\AppData\Local\Temp\pycharm-packaging3577041299153334552.tmp\MySQL-python\setup.py", line 15, in <module>
metadata, options = get_config()
File "setup_windows.py", line 7, in get_config
serverKey = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE, options['registry_key'])
WindowsError: [Error 2] Nie można odnaleźć określonego pliku
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "C:\Users\Grzegorz\AppData\Local\Temp\pycharm-packaging3577041299153334552.tmp\MySQL-python\setup.py", line 15, in <module>
metadata, options = get_config()
File "setup_windows.py", line 7, in get_config
serverKey = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE, options['registry_key'])
WindowsError: [Error 2] Nie można odnaleźć określonego pliku
----------------------------------------
Command python setup.py egg_info failed with error code 1 in C:\Users\Grzegorz\AppData\Local\Temp\pycharm-packaging3577041299153334552.tmp\MySQL-python
Storing complete log in C:\Users\Grzegorz\pip\pip.log
Wenn ich versuche, installieren Sie dieses Paket aus binären MySQL-python-1.2.3.win32-py2.7.exe dann ist alles ordnungsgemäß installiert, aber es ist keine Lösung für mich.
Haben Sie irgendwelche Vorschläge, wie kann ich das richtig installieren Sie dieses Paket auf Windows 7 (alle anderen Pakete, die ich in der Lage bin, zu installieren, ohne irgendwelche Probleme)?
Du musst angemeldet sein, um einen Kommentar abzugeben.
Haben Sie versucht, mit :
Es funktioniert bei mir bei Windows 7 einen langen mit Virtualenv. Ich hatte das gleiche problem mit pip.
pip install MySQL-python
Befehl versucht, kompilieren Sie die Bibliothek aus dem Quellcode (das schlägt fehl, wenn Visual Studio nicht installiert ist), währendeasy_install MySQL-python
downloads die pre-compiled binary Datei.Wenn Sie die Installation von mysql-python-Global (in C:/python27) aus http://www.lfd.uci.edu/~gohlke/pythonlibs/#mysql-python
dann können Sie kopieren die folgenden Dateien aus "C:/python/lib/site-packages" zu Ihrer virtuellen Umgebung "/lib/site-packages"
**Nicht kopieren von mysql-Dateien aus "C:\Python27\Lib\site-packages\django\db\backends" oder "C:\Python27\Lib\site-packages\django\contrib\gis\db\backends".
Es ist ein Windows-MSI-installer jetzt auf SourceForge. Versuchen, aber wenn Sie lieber selber bauen, für jetzt (bis 1.2.4 veröffentlicht wird), sollten Sie in der Lage, dies zu tun:
Oben davon ausgegangen, dass Sie Subversion installiert.