-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Six issue when installing package #3165
Comments
You're on El-Capitan right? |
I have this issue when installing AWS-SDK, which depends on six. On El-Capitan indeed. |
This is because OS X El Capitan ships with six 1.4.1 installed already and when it attempts to uninstall it (because awscli depends on botocore, botocore depends on python-dateutil, and python-dateutil depends on six >= 1.5) it doesn't have permission to do so because System Integrity Protection doesn't allow even root to modify those directories. Ideally, pip should just skip uninstalling those items since they aren't installed to site-packages they are installed to a special Apple directory. However, even if pip skips uninstalling those items and installs six into site-packages we'll hit another bug where Apple puts their pre-installed stuff earlier in the |
This affects many other packages which rely on Six, pardon my obliviousness, but is there any way to tell pip to either 1. install an updated version to /Library's site-packages and be pointed to prefer that one (instead of saying 'requirement satisfied! and exiting) or 2. ignore the version found in /System on 10.11+? |
|
Sure, but pip won't then prefer that upgraded version of Six when performing sudo installs:
|
... |
Ah, so this is less a pip issue to address (although it seems like |
...Shouldn't there be some other, more permanent fix? |
THANKS! The following allowed it to install correctly. pip install awsebcli --upgrade --ignore-installed six Running on OSX El Capitan $ eb --version |
@arubdesu I'm hoping the more permanent fix will be to have Apple just fix this, which I am talking to them about. |
Hello all! Running El Capitan as well P.S: Please forgive me if I'm not posting this correctly I'm a complete noob to github :( |
sudo pip install virtualenvwrapper --upgrade --ignore-installed six Did work for me! thanks guys |
You can disable System Integrity Protection completely via running |
Anyone can respond to this issue however they want, (playing chicken with Apple over this is like waiting for an updated version of rsync, in my opinion...) but if you're coming to this thread now, just know that you can work around this issue by:
|
Just a suggestion friend, no need to get alarmed. |
I agree with @arubdesu |
And I agree with @dstufft that Apple should hard-code any of their python package dependencies to the System folder and allow the default path to check |
both of these result in six version 1.41: |
@monte-hayward Try |
Hi folks, FYI: If you fill a bug report please mention Radar # 20471644 |
I found the easiest solution was to use homebrew to install a local version of python (thus pip). This avoids the complexities of El Capitan's protected install of python and instead installs python into /usr/local/bin. The various solutions for the "--ignore-installed six" did not work on my system. Just do:
The pip install command should work fine after that. More information is available here: |
With hacks for pip on El Cap. Cf. pypa/pip#3165
Thanks much for this: |
Yep, still an issue in High Sierra, 10.13.1. Solved with: |
to install pytest on mac with el capitan, this worked: sudo pip install pytest --upgrade --ignore-installed six"Installing collected packages: py, attrs, pluggy, funcsigs, six, setuptools, pytest pytest --version"This is pytest version 3.3.1, imported from /Library/Python/2.7/site-packages/pytest.pyc" |
Fixed installing IPython on MacOS High Sierra: For me, using 'pip3' instead of 'pip' worked. Probable reason was pip was trying to deal with the default python installation provided by Mac. However I have installed Python3 using brew. So the following worked for me: $ sudo pip3 install ipython[All] |
@ShatishPandey to use pip with a specific python, you can always incant:
Where |
@dstufft Thaaanks. pip install --user jupyter works fine in High Sierra, 10.13.3. |
Just do not use the system python, let pyenv save your world. |
@codedogfish can you explain, I am facing similar issue on travis build, but activating virtualenv not doing anything different on the build. Also its not possible to use --ignore-installed command for all packages. I was getting similar error for other package too, so I tihnk --ignore-installed is needed too. |
thanks !! |
I have the same problem in Mac Mojave right now. |
When trying to install
awscli
I get the following error.Other user have mentioned the issue and point to
pip
:aws/aws-cli#1522
https://bitbucket.org/gutworth/six/issues/134/uninstall-error-operation-not-permitted
The text was updated successfully, but these errors were encountered: