2014-04-30 6 views
0

Macbook Pro 실행중인 매버릭스에 pygame을 설치하려고합니다.Python 2.7/3 PyGame 설치

나는 파이 게임을 설치하려면 다음 자습서를 따랐다 : "http://dudeslife.com/blog/2014/programming/installing-python-3-3-3-pygame-on-os-x-mavericks/"

내가 모두 python3 및 파이썬 2.7에서 파이 게임을 설치하는 지시를 따랐다.

불행히도 "sudo pip install hg + http://bitbucket.org/pygame/pygame"을 실행하면 다음 오류가 발생합니다.

cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -arch i386 -pipe -Ddarwin -D_THREAD_SAFE -DENABLE_NEWBUF=1 -I/usr/X11R6/include -I/usr/local/include/SDL -I/usr/local/include/SDL -I/usr/X11/include -I/usr/local/include -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/imageext.c -o build/temp.macosx-10.9-intel-2.7/src/imageext.o 

clang: error: unknown argument: '-mno-fused-madd' [-Wunused-command-line-argument-hard-error-in-future] 

clang: note: this will be a hard error (cannot be downgraded to a warning) in the future 

error: command 'cc' failed with exit status 1 

---------------------------------------- 
Cleaning up... 
Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-fpBwWg-build/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-Nhafjq-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip-fpBwWg-build 
Storing debug log for failure in /Users/username/Library/Logs/pip.log 

메모에 따르면이 경고를 무시하도록 컴파일러에서 플래그를 설정할 수 없으므로 손실이 발생합니다. 나는 잠시 동안 파이 게임을 설치하려고 노력해 왔으며 어떤 도움을 주셔서 감사합니다.

보다도, 좌절 초급 파이썬 사용자

답변

0

이 Xcode의 명령 줄 도구에 애플에서 변화를 파괴의 결과이다. 간단히 설명하면 here입니다.

일부 사이트에서는이 버그에 대한 임시 해결 방법을 제공합니다. 다음을 실행 해보십시오.

export ARCHFLAGS="-Wno-error=unused-command-line-argument-hard-error-in-future" 

터미널에 넣은 다음 설치를 다시 시도하십시오. 그래도 문제가 해결되지 않으면 문제에 대한 쉬운 해결 방법이나 해결 방법이 없을 수 있습니다. 그래도 결과를 게시 해주세요.