Failing at collected packages, Exceptions, OSError 13 (El Capitan)


#1

Following a good suggestion earlier to uninstall and reinstall homebrew, I also updated my Python version to 3.5.1. Running this:
$ ./letsencrypt-auto --debug --version
I got through Bootstrapping dependencies… Using Homebrew… (two warnings that augeas-1.4.0 and dialog-1.3* were already installed) then came the Exceptions:

pip not installed
Installing pip...
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/__/6sqb0**/T/tmp6UeWY5/pip.zip/pip/basecommand.py", line 209, in main
    status = self.run(options, args)
  File "/var/folders/__/6sqb0**/T/tmp6UeWY5/pip.zip/pip/commands/install.py", line 317, in run
    prefix=options.prefix_path,
  File "/var/folders/__/6sqb0**/T/tmp6UeWY5/pip.zip/pip/req/req_set.py", line 732, in install
    **kwargs
  File "/var/folders/__/6sqb0**/T/tmp6UeWY5/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/__/6sqb0**/T/tmp6UeWY5/pip.zip/pip/req/req_install.py", line 1030, in move_wheel_files
    isolated=self.isolated,
  File "/var/folders/__/6sqb0**/T/tmp6UeWY5/pip.zip/pip/wheel.py", line 344, in move_wheel_files
    clobber(source, lib_dir, True)
  File "/var/folders/__/6sqb0**/T/tmp6UeWY5/pip.zip/pip/wheel.py", line 315, in clobber
    ensure_dir(destdir)
  File "/var/folders/__/6sqb0**/T/tmp6UeWY5/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'

Permissions on python - owner is root on this Mac mini. Newbie question: do I need to uninstall and reinstall python 2.7.11 for this to work? Apparently Python 3.x installed in somewhere other than /Library/Python so I’m unclear on best path forward.

Thx


#2

Update: used brew to install python (instead of download/install), which installed pip too.
Install success: lets encrypt 0.5.0