每次我尝试安装Python模块时(通过easy_install或python setup.py安装),安装都会失败:
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
帮帮我
系统:运行Lion并安装了XCode 4的Mac OSX
更新:这是尝试安装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