1
我正在將PyGame安裝到OSx ElCapitan,其系統安裝爲2.7,而Brew安裝的Python3之後的版本爲。沖泡安裝Python3工作的罰款與與Python Capitan系統相關的Python Pygame OSx錯誤
sudo pip3 install hg+http://bitbucket.org/pygame/pygame
但
sudo pip install hg+http://bitbucket.org/pygame/pygame
運行到以下錯誤
running install_headers
creating /System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/pygame
error: could not create '/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/pygame': Operation not permitted
Rolling back uninstall of pygame
Command "/usr/bin/python -c "import setuptools, tokenize;
__file__='/tmp/pip-wepMKN-build/setup.py';
exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))"
install --record /tmp/pip-sWpHWA-record/install-record.txt
--single-version-externally-managed --compile"
failed with error code 1 in /tmp/pip-wepMKN-build
我相信這是與在埃爾卡皮坦新System Integrity Protection。一切都在更新和篡改之前,否則系統運行良好。
任何關於如何克服這個問題的幫助,對於很多人來說都是很棒的,也是很有幫助的。
感謝
克里斯
也許看看[這裏](http://apple.stackexchange.com/questions/209572/how-to-use-pip-after-the-el-capitan-max-os-x-upgrade) – Arthur