Comments (15)
I had the same issue. The solution of @mikeecb worked for me 👍
from http-prompt.
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.
@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.
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.
Did you use sudo
?
from http-prompt.
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.
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.
from http-prompt.
Try uninstalling six first:
sudo pip uninstall six
sudo rm -rf <the problematic egg-info directory>
sudo pip install http-prompt
from http-prompt.
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.
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.
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.
@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.
--ignore-installed
works. I would add this to the readme. Thanks.
from http-prompt.
I'll create an FAQ section and add this to it. 👍
from http-prompt.
Related Issues (20)
- Support Tab completion for files when in prompt mode?
- --verbose Doesn't show request headers
- Any chance to port to prompt_toolkit 3? HOT 7
- Recursive mode & more detailed`ls` HOT 1
- change shortcut for autocomplete?
- Video Interview for v2.1.0 OpenAPI Support
- Preview request? HOT 2
- swagger yaml issue
- Bug: OpenAPI schemas give wrong completion when the root of the API is a path relative to the domain
- Not performing requests on Windows
- http-prompt producing different 'data' than httpie
- Visualize tree structure HOT 2
- Support for setting variables based on response data
- The command line param --auth is showed as url
- The command line param -v show the version but launch the cli HOT 1
- how to remove pager? HOT 2
- Investigate increasing Maintainer Productivity with Pull Requests Environments
- Cookies auto setting invalid.
- An error occurs during installation
- PyOpenSSLContext has no attribute get_ciphers HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from http-prompt.