簡體   English   中英

與El Capitan System相關的Python Pygame OSx錯誤

[英]Python Pygame OSx error relating to El Capitan System

此博客文章之后,我正在使用2.7的系統安裝和Python3的Brew安裝在OSx ElCapitan上安裝PyGame。 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的新系統完整性保護有關。 之前,所有內容均已更新和修改過,因此系統可以正常運行。

我可以克服的任何幫助都是很棒的,對我確定的許多人都是有幫助的。

謝謝

克里斯

@Arthur提供了指向該問題的可能解決方案的線程的鏈接,盡管我不確定我是否准備好關閉SIP,因此個人會選擇僅在上述線程上未經批准的答案建議安裝的用戶。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM