2016-12-29 3 views
0

Bei der Installation von pygame auf dem Mac, habe ich eine Menge Fehler bekommen. Ich bin besorgt, dass es wegen mir ist, eine Reihe von python 2.7 Dateien von verschiedenen Orten zu löschen. (Siehe letzte Frage). Ich merkte erst, nachdem ich sie gelöscht hatte, dass es eine dumme Sache war. Der einzige Teil, der mich verwirrt, ist, dass ich erfolgreich numpy vor ein paar Tagen ohne Probleme installiert habe. Wenn es eine alternative Möglichkeit für mich gibt, weiterhin Module zu installieren oder die Probleme zu beheben, helfen Sie bitte. Laufender Mac OSX - Sierra.Seltsame Fehlermeldungen bei der Installation von Python-Modul mit Pip

sudo pip3 install pygame 

Password: 
The directory '/Users/kendrick/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. 
The directory '/Users/kendrick/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. 
Collecting pygame 
    Downloading pygame-1.9.2.tar.gz (3.0MB) 
    100% |████████████████████████████████| 3.0MB 138kB/s 
    Complete output from command python setup.py egg_info: 


WARNING, No "Setup" File Exists, Running "config.py" 
Using Darwin configuration... 

/bin/sh: sdl-config: command not found 
/bin/sh: sdl-config: command not found 
/bin/sh: sdl-config: command not found 
WARNING: "sdl-config" failed! 
Hunting dependencies... 
SDL  : not found 
Framework SDL not found 
FONT : not found 
Framework SDL_ttf not found 
IMAGE : not found 
Framework SDL_image not found 
MIXER : not found 
Framework SDL_mixer not found 
Framework CoreMIDI found 
Framework QuickTime found 
PNG  : not found 
JPEG : not found 
PORTMIDI: not found 
FREETYPE: found 2.6.1 

If you get compiler errors during install, doublecheck 
the compiler flags in the "Setup" file. 


Continuing With "setup.py" 
Traceback (most recent call last): 
    File "<string>", line 1, in <module> 
    File "/private/tmp/pip-build-03bu0lxv/pygame/setup.py", line 294, in <module> 
    write_version_module(METADATA['version'], revision) 
    File "/private/tmp/pip-build-03bu0lxv/pygame/setup.py", line 286, in write_version_module 
    with open('version.py.in', 'r') as header_file: 
FileNotFoundError: [Errno 2] No such file or directory: 'version.py.in' 

---------------------------------------- 
Command "python setup.py egg_info" failed with error code 1 in /private/tmp/pip-build-03bu0lxv/pygame/ 
+0

möglicherweise ein Duplikat http://stackoverflow.com/questions/2122519/where-is-sdl-config-installed-on-macos- 10-6-snow-leopard –

Antwort

0

Das ist ein Problem mit der Version 1.9.2 von PyGame. Einige Dateien waren nicht im Paket enthalten, so dass diese Version effektiv nutzlos ist. Hier

ist ein Link zum Fehlerbericht: https://bitbucket.org/pygame/pygame/issues/319/missing-versionpyin-in-source-tarball

Und für die Vollständigkeit, die vorgeschlagene Lösung ist:

Ratten, habe ich nicht den Sdist prüfen, bevor es hochgeladen wurde. In der Zwischenzeit können Sie eine Quellkodearchivs von Bitbucket herunterladen: https://bitbucket.org/pygame/pygame/get/1.9.2.tar.gz

+0

danke! Alles hat geklappt! – Fizics

Verwandte Themen