Troubleshooting Mac OSX under PIP installation Ipython permissions

Source: Internet
Author: User

1 Pip install ipython --user -U

The following is the PIP install gevent error prompt, and operation not permitted ...

12345 #xiaorui. CCpip Install gevent . . . raise Error, errors Error: [('/system/library/frameworks/python.framework/versions/2.7/extras/lib/python/_markerlib/__init__.py ', '/tmp/pip-jlyjj9-uninstall/system/library/frameworks/python.framework/versions/2.7/extras/lib/python/_ markerlib/__init__.py ', "[Errno 1] Operation not permitted: '/tmp/pip-jlyjj9-uninstall/system/library/frameworks/python.framework/versions/ 2.7/extras/lib/python/_markerlib/__init__.py ' "), ('/system/library/frameworks/python.framework/versions/2.7/extras/lib/python/_markerlib/__init__.pyc ', '/tmp/pip-jlyjj9-uninstall/system/library/frameworks/python.framework/versions/2.7/extras/lib/python/_ Markerlib/__init__.pyc ', "[Errno 1] Operation not permitted: '/tmp/pip-jlyjj9-uninstall/system/library/frameworks/python.framework/versions/ 2.7/extras/lib/python/_markerlib/__init__.pyc ' "), ('/system/library/frameworks/python.framework/versions/2.7/extras/lib/python/_markerlib/markers.py ', '/tmp/pip-jlyjj9-uninstall/system/library/frameworks/python.framework/versions/2.7/extras/lib/python/_ markerlib/markers.py ', "[Errno 1] Operation not permitted: '/tmp/pip-jlyjj9-uninstall/system/library/frameworks/python.framework/versions/ 2.7/extras/lib/python/_markerlib/markers.py ' "), ('/system/library/frameworks/python.framework/versions/2.7/extras/lib/python/_markerlib/markers.pyc ', '/tmp/pip-jlyjj9-uninstall/system/library/frameworks/python.framework/versions/2.7/extras/lib/python/_ Markerlib/markers.pyc ', "[Errno 1] Operation not permitted: '/tmp/pip-jlyjj9-uninstall/system /library/frameworks/python.framework/versions/2.7/extras/lib/python/_markerlib/markers.pyc ' " , ( '/system/library/frameworks/python.framework/versions/2.7/extras/lib/python/_markerlib ' , '/tmp/pip-jlyjj9-uninstall/system/ Library/frameworks/python.framework/versions/2.7/extras/lib/python/_markerlib ' , [Errno 1] Operation not permitted: '/tmp/pip-jlyjj9-uninstall/system/ Library/frameworks/python.framework/versions/2.7/extras/lib/python/_markerlib ' ")

In fact, the problem of permissions ...  OSError: [Errno 1] Operation not permitted, a variety of root can not, think of a rough way, direct share for chmod authorization. Results...   Tip Root is also a directory that does not have a privileged operating system. I suddenly realized that the new version of OSX had some mechanism to stop us from modifying/system document data directly.

Google, and found that as I expected .... The new system has a mechanism called SIP. You can not be directly at the terminal csrutil disable will appear error prompts, guide you to the Mac OSX recovery mode to operate.

Due to the introduction of the SIP mechanism (System Integrity Protection) by El Capitan, the system is enabled by default to enable the SIP system integrity protection mechanism, whether it is a hard disk or runtime process that restricts write operations to the system directory. This is why we failed to install Ipython ....

The solution now is to cancel the SIP mechanism, with the following measures:

Restart your computer, press and hold Command+r (until the Apple logo appears) into recovery mode (recovery model)
In the top left menu, find the utility, terminal
Input csrutil Disable carriage return
Restart your Mac
If you want to restart the SIP mechanism, repeat the steps above to use Csrutil enable

Let's look at the SIP status again, so we can install Ipython, gevent never prompt for permission prompts that cannot be written.

12 $ csrutil status System Integrity Protection status: disabled.

If you encounter OSError under the Mac: [Errno 1] Operation not permitted: the problem, even with sudo can not solve, it must be sip in mischief.

Hu Yang elder brother gives an elegant plan, everybody can use next. It is more reasonable to install the module package based on the user's permissions.

1 Pip install ipython --user -U

Troubleshooting Mac OSX under PIP installation Ipython permissions

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.