Python, GCC вызывает сбой установки модуля - PullRequest
2 голосов
/ 10 декабря 2011

Каждый раз, когда я пытаюсь установить модуль Python (с помощью easy_install или python setup.py install), установка завершается с ошибкой:

    unable to execute gcc-4.0: No such file or directory
error: Setup script exited with error: command 'gcc-4.0' failed with exit status 1

Помоги мне

Система: Mac OSX под управлением Lion с установленным XCode 4

Обновление: вот вывод при попытке установить pygame:

    familys-imac:~ Paul-Arthur$ easy_install pygame
    Searching for pygame
    Reading http://pypi.python.org/simple/pygame/
    Reading http://www.pygame.org/
    Reading http://www.pygame.org/download.shtml
    Best match: pygame 1.9.1release
    Downloading http://www.pygame.org/ftp/pygame-1.9.1release.zip
    Processing pygame-1.9.1release.zip
    Running pygame-1.9.1release/setup.py -q bdist_egg --dist-dir /var/folders/y7/wskjhyr55_sg4n0w7c8qvrpm0000gp/T/easy_install-tioF5H/pygame-1.9.1release/egg-dist-tmp-gxSl_1


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

    Hunting dependencies...
    Framework SDL found
    Framework SDL_ttf found
    Framework SDL_image found
    Framework SDL_mixer found
    Framework smpeg not found
    PNG     : found
    JPEG    : found
    SCRAP   : not found
    PORTMIDI: not found
    Framework CoreMidi found

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


    Continuing With "setup.py"
    warning: no files found matching 'readme.txt'
    no previously-included directories found matching '*/CVS'
    no previously-included directories found matching '*/*/CVS'
    unable to execute gcc-4.0: No such file or directory
    error: Setup script exited with error: command 'gcc-4.0' failed with exit status 1
...