Giter Site home page Giter Site logo

Comments (15)

jamyouss avatar jamyouss commented on May 4, 2024 2

I had the same issue. The solution of @mikeecb worked for me 👍

from http-prompt.

ralphschindler avatar ralphschindler commented on May 4, 2024 1

Yeah, those files can't be removed/updated b/c they are under the protection of SIP in os.x. It looks as though I've previously installed httpie via homebrew.

Update: I will try this. http://apple.stackexchange.com/questions/209572/how-to-use-pip-after-the-el-capitan-max-os-x-upgrade

from http-prompt.

eliangcs avatar eliangcs commented on May 4, 2024 1

@voidpirate this is a great idea! I'll probably add it in README. I was not aware of --user option as I use pyenv and pyenv-virtualenv personally.

from http-prompt.

georules avatar georules commented on May 4, 2024 1
sudo pip install http-prompt --ignore-installed six

worked for me. I assume the --user option would work in combination with the ignore-installed as well.

from http-prompt.

eliangcs avatar eliangcs commented on May 4, 2024

Did you use sudo?

from http-prompt.

georules avatar georules commented on May 4, 2024

I had (perhaps) a related problem, OSX 10.11.4. I first did pip install without sudo (whoops) and then did it with sudo and got the following:

Collecting http-prompt
Requirement already satisfied (use --upgrade to upgrade): click>=5.0 in /Library/Python/2.7/site-packages (from http-prompt)
Requirement already satisfied (use --upgrade to upgrade): parsimonious>=0.6.2 in /Library/Python/2.7/site-packages (from http-prompt)
Requirement already satisfied (use --upgrade to upgrade): httpie>=0.9.0 in /Library/Python/2.7/site-packages (from http-prompt)
Requirement already satisfied (use --upgrade to upgrade): Pygments>=2.1.0 in /Library/Python/2.7/site-packages (from http-prompt)
Collecting six>=1.10.0 (from http-prompt)
  Downloading six-1.10.0-py2.py3-none-any.whl
Collecting prompt-toolkit>=0.60 (from http-prompt)
  Downloading prompt_toolkit-1.0.0-py2-none-any.whl (223kB)
    100% |████████████████████████████████| 225kB 2.2MB/s
Requirement already satisfied (use --upgrade to upgrade): requests>=2.3.0 in /Library/Python/2.7/site-packages (from httpie>=0.9.0->http-prompt)
Collecting wcwidth (from prompt-toolkit>=0.60->http-prompt)
  Downloading wcwidth-0.1.6-py2.py3-none-any.whl
Installing collected packages: six, wcwidth, prompt-toolkit, http-prompt
  Found existing installation: six 1.4.1
    DEPRECATION: Uninstalling a distutils installed project (six) has been deprecated and will be removed in a future version. This is due to the fact that uninstalling a distutils project will only partially uninstall the project.
    Uninstalling six-1.4.1:
Exception:
Traceback (most recent call last):
  File "/Library/Python/2.7/site-packages/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
  File "/Library/Python/2.7/site-packages/pip/commands/install.py", line 317, in run
    prefix=options.prefix_path,
  File "/Library/Python/2.7/site-packages/pip/req/req_set.py", line 736, in install
    requirement.uninstall(auto_confirm=True)
  File "/Library/Python/2.7/site-packages/pip/req/req_install.py", line 742, in uninstall
    paths_to_remove.remove(auto_confirm)
  File "/Library/Python/2.7/site-packages/pip/req/req_uninstall.py", line 115, in remove
    renames(path, new_path)
  File "/Library/Python/2.7/site-packages/pip/utils/__init__.py", line 267, in renames
    shutil.move(old, new)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 302, in move
    copy2(src, real_dst)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 131, in copy2
    copystat(src, dst)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 103, in copystat
    os.chflags(dst, st.st_flags)
OSError: [Errno 1] Operation not permitted: '/tmp/pip-YTkss5-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/six-1.4.1-py2.7.egg-info'

from http-prompt.

eliangcs avatar eliangcs commented on May 4, 2024

Try deleting the problematic directory and re-install again with sudo:

sudo rm -rf /tmp/pip-YTkss5-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/six-1.4.1-py2.7.egg-info
sudo pip install http-prompt

You may have to change the directory permission with chmod if you can't delete it.

from http-prompt.

ralphschindler avatar ralphschindler commented on May 4, 2024

1 bash 2016-05-19 09-30-31

from http-prompt.

eliangcs avatar eliangcs commented on May 4, 2024

Try uninstalling six first:

sudo pip uninstall six
sudo rm -rf <the problematic egg-info directory>
sudo pip install http-prompt

from http-prompt.

ralphschindler avatar ralphschindler commented on May 4, 2024

I'm not sure what six is, but it is definitely the problem. The uninstall script for that package won't run correctly. Is there a way to manually remove six?

from http-prompt.

eliangcs avatar eliangcs commented on May 4, 2024

You can go to the site-packages directory and delete all the stuffs related to six. On your Mac computer, the site-packages directory is probably at: /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python

from http-prompt.

0verbyte avatar 0verbyte commented on May 4, 2024

Why not use --user when installing? You should never have to run sudo.

pip install --user http-prompt, this will encapsulate the package only in the user directory, instead of system wide.

from http-prompt.

mikeecb avatar mikeecb commented on May 4, 2024

@ralphschindler Not sure if solved, but this pip / OS X error with El Capitan. A possible solution from stackoverflow:

pip install --ignore-installed six

from http-prompt.

ralphschindler avatar ralphschindler commented on May 4, 2024

--ignore-installed works. I would add this to the readme. Thanks.

from http-prompt.

eliangcs avatar eliangcs commented on May 4, 2024

I'll create an FAQ section and add this to it. 👍

from http-prompt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.