【问题标题】:Python Pygame OSx error relating to El Capitan System与 El Capitan 系统相关的 Python Pygame OSx 错误
【发布时间】: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 有关。之前所有内容都已更新和修改,因此系统运行良好。

任何关于我如何克服这个问题的帮助都会很棒,而且我相信对许多人都有帮助。

谢谢

克里斯

【问题讨论】:

标签: python macos pygame


【解决方案1】:

@Arthur 提供了一个关于此问题可能解决方案的线程的链接,尽管我不确定我是否已准备好关闭 SIP,因此我个人会选择仅由未批准的答案建议的用户安装前面提到的线程。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-01-03
    • 2016-02-13
    • 2016-12-27
    • 2015-12-29
    • 2016-12-07
    • 2016-09-14
    • 2017-01-14
    相关资源
    最近更新 更多