Eu uso Mac, baixei pelo link indicado no exercício o arquivo get-pip.py e executei ele pelo terminal. A instalação não ocorreu. Segue abaixo o que foi exibido no terminal:
Mac-mini-de-Sandro:python sandrochernicharogomes$ python get-pip.py
Collecting pip
Downloading pip-9.0.1-py2.py3-none-any.whl (1.3MB)
100% |████████████████████████████████| 1.3MB 350kB/s
Collecting wheel
Downloading wheel-0.30.0-py2.py3-none-any.whl (49kB)
100% |████████████████████████████████| 51kB 498kB/s
Installing collected packages: pip, wheel
Exception:
Traceback (most recent call last):
File "/var/folders/rr/1564ph412sj71f3dl92lsdlh0000gn/T/tmp_o8eYq/pip.zip/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/var/folders/rr/1564ph412sj71f3dl92lsdlh0000gn/T/tmp_o8eYq/pip.zip/pip/commands/install.py", line 342, in run
prefix=options.prefix_path,
File "/var/folders/rr/1564ph412sj71f3dl92lsdlh0000gn/T/tmp_o8eYq/pip.zip/pip/req/req_set.py", line 784, in install
**kwargs
File "/var/folders/rr/1564ph412sj71f3dl92lsdlh0000gn/T/tmp_o8eYq/pip.zip/pip/req/req_install.py", line 851, in install
self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
File "/var/folders/rr/1564ph412sj71f3dl92lsdlh0000gn/T/tmp_o8eYq/pip.zip/pip/req/req_install.py", line 1064, in move_wheel_files
isolated=self.isolated,
File "/var/folders/rr/1564ph412sj71f3dl92lsdlh0000gn/T/tmp_o8eYq/pip.zip/pip/wheel.py", line 345, in move_wheel_files
clobber(source, lib_dir, True)
File "/var/folders/rr/1564ph412sj71f3dl92lsdlh0000gn/T/tmp_o8eYq/pip.zip/pip/wheel.py", line 316, in clobber
ensure_dir(destdir)
File "/var/folders/rr/1564ph412sj71f3dl92lsdlh0000gn/T/tmp_o8eYq/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'