Pip installation became easier before I knew it
python get-pip.py
Even if you put this in
Collecting pip Using cached pip-8.1.1-py2.py3-none-any.whl Collecting wheel Using cached wheel-0.29.0-py2.py3-none-any.whl Installing collected packages: pip, wheel Exception: Traceback (most recent call last): File "/var/folders/1s/zx_tbsz12q11ff8h79g8yqy40000gn/T/tmpXAEHyo/pip.zip/pip/basecommand.py", line 209, in main status = self.run(options, args) File "/var/folders/1s/zx_tbsz12q11ff8h79g8yqy40000gn/T/tmpXAEHyo/pip.zip/pip/commands/install.py", line 317, in run prefix=options.prefix_path, File "/var/folders/1s/zx_tbsz12q11ff8h79g8yqy40000gn/T/tmpXAEHyo/pip.zip/pip/req/req_set.py", line 732, in install **kwargs File "/var/folders/1s/zx_tbsz12q11ff8h79g8yqy40000gn/T/tmpXAEHyo/pip.zip/pip/req/req_install.py", line 835, in install self.move_wheel_files(self.source_dir, root=root, prefix=prefix) File "/var/folders/1s/zx_tbsz12q11ff8h79g8yqy40000gn/T/tmpXAEHyo/pip.zip/pip/req/req_install.py", line 1030, in move_wheel_files isolated=self.isolated, File "/var/folders/1s/zx_tbsz12q11ff8h79g8yqy40000gn/T/tmpXAEHyo/pip.zip/pip/wheel.py", line 344, in move_wheel_files clobber(source, lib_dir, True) File "/var/folders/1s/zx_tbsz12q11ff8h79g8yqy40000gn/T/tmpXAEHyo/pip.zip/pip/wheel.py", line 315, in clobber ensure_dir(destdir) File "/var/folders/1s/zx_tbsz12q11ff8h79g8yqy40000gn/T/tmpXAEHyo/pip.zip/pip/utils/init.py", line 83, in ensure_dir os.makedirs(path) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py", line 157, in makedirs mkdir(name, mode) OSError: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/pip'
This kind of thing tends to come out.
So even if you put something like this
#### **`curl -kL https://raw.github.com/pypa/pip/master/contrib/get-pip.py | python`**
↓
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
100 260 100 260 0 0 95 0 0:00:02 0:00:02 --:--:-- 0
You're using an outdated location for the get-pip.py script, please use the one available from https://bootstrap.pypa.io/get-pip.py
You will be told that it is out of date.
↓ Maybe this one line is the solution.
curl -kL https://bootstrap.pypa.io/get-pip.py | sudo python
It seems that the location of get-pip.py has changed. Even if you are told that "this directory is not your authority", you can sudo it.
(Addition)
In the first place, Python has 3.5, but 2.7 seems to be safer.
If you put pip normally, it will be out of the administrator authority and it seems to be quite troublesome, so it seems good to devise a download location so that it will be in the administrator authority. http://hacknote.jp/archives/19074/