【发布时间】:2015-11-20 12:29:10
【问题描述】:
我正在将 PyGame 安装到 OSx ElCapitan,系统安装为 2.7,并在 this blog post 之后安装 Python3 的 Brew。 brew install Python3 可以正常使用
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
我认为这与 El Capitan 中的新 System Integrity Protection 有关。之前所有内容都已更新和修改,因此系统运行良好。
任何关于我如何克服这个问题的帮助都会很棒,而且我相信对许多人都有帮助。
谢谢
克里斯
【问题讨论】:
-
也许看看here