osx 10.11.1 , could not create '/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/greenlet': Operation not permitted
osx 10.11.1 , install gevent , i get an error ,
sudo -H pip install greenlet
could not create '/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/greenlet': Operation not permitted
i am is root , but ,why can't Operation not permitted ?
here is the detail message:
HackedBy007:~ weirdbird007$ sudo -H pip install greenlet
Password:
Collecting greenlet
Using cached greenlet-0.4.9.tar.gz
Installing collected packages: greenlet
Running setup.py install for greenlet
Complete output from command /usr/bin/python -c "import setuptools, tokenize;__file__='/private/tmp/pip-build-6KNYrr/greenlet/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-brHEyp-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_ext
building 'greenlet' extension
creating build
creating build/temp.macosx-10.11-intel-2.7
cc -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -pipe -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c greenlet.c -o build/temp.macosx-10.11-intel-2.7/greenlet.o
creating build/lib.macosx-10.11-intel-2.7
cc -bundle -undefined dynamic_lookup -arch i386 -arch x86_64 -Wl,-F. build/temp.macosx-10.11-intel-2.7/greenlet.o -o build/lib.macosx-10.11-intel-2.7/greenlet.so
running install_lib
copying build/lib.macosx-10.11-intel-2.7/greenlet.so -> /Library/Python/2.7/site-packages
running install_headers
creating /System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/greenlet
error: could not create '/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/greenlet': Operation not permitted
----------------------------------------
Looks like you ran into El Capitan's system integrity protection. Nobody, not even root, can write to certain locations.
Anyway, a recommended way to install most Python packages would be to use a virtualenv.
thanks
you can also use pip install --user
@randavidovitz I actually was successful , thanks !
thanks @randavidovitz . It worked for me too :)
Working with --user "thanks"
thanks @randavidovitz! :+1:
thanks @randavidovitz
thanks! @randavidovitz
That worked @randavidovitz
Thanks @randavidovitz
Thanks @randavidovitz
Thanks @randavidovitz - your suggestion worked perfectly.
Thanks! That help me a lot! @randavidovitz
Thanks @randavidovitz
@randavidovitz It worked for me too. Thanks!!
@randavidovitz I think it worked for me to :)
Thanks @randavidovitz