gto gto - 2 months ago 15
Python Question

pip permissions issue on OS X using a basic command

I'm trying to install pip using this command:


The error it's spitting out is this - can you help? (I'm running macOS 10.12.1)

Collecting pip
Using cached pip-8.1.2-py2.py3-none-any.whl
Collecting wheel
Using cached wheel-0.29.0-py2.py3-none-any.whl
Installing collected packages: pip, wheel
Traceback (most recent call last):
File "/var/folders/by/db2rdr7n1753qbfz0rlgk7hw0000gn/T/tmptA1AVr/", line 215, in main
status =, args)
File "/var/folders/by/db2rdr7n1753qbfz0rlgk7hw0000gn/T/tmptA1AVr/", line 317, in run
File "/var/folders/by/db2rdr7n1753qbfz0rlgk7hw0000gn/T/tmptA1AVr/", line 742, in install
File "/var/folders/by/db2rdr7n1753qbfz0rlgk7hw0000gn/T/tmptA1AVr/", line 831, in install
self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
File "/var/folders/by/db2rdr7n1753qbfz0rlgk7hw0000gn/T/tmptA1AVr/", line 1032, in move_wheel_files
File "/var/folders/by/db2rdr7n1753qbfz0rlgk7hw0000gn/T/tmptA1AVr/", line 346, in move_wheel_files
clobber(source, lib_dir, True)
File "/var/folders/by/db2rdr7n1753qbfz0rlgk7hw0000gn/T/tmptA1AVr/", line 317, in clobber
File "/var/folders/by/db2rdr7n1753qbfz0rlgk7hw0000gn/T/tmptA1AVr/", line 83, in ensure_dir
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/", line 157, in makedirs
mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/pip'


To install pip you on Mac OSX you can try : sudo easy_install pip

The "sudo" keyword is what will grant you root privileges.