title: "pip install" permission denied on Mac
body: <p>I tried to install the base65536 module, by typing this into Terminal:  </p>
  
  <p><code>pip install base65536</code>  </p>
  
  <p>Yet it produced this error:  </p>
  
  <p>Collecting base65536
    Using cached base65536-0.1.1.tar.gz
  Requirement already satisfied: six in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python (from base65536)
  Installing collected packages: base65536
    Running setup.py install for base65536 ... error
      Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;<strong>file</strong>='/private/var/folders/2h/n5zk2_w50273k4hdxw8l05240000gn/T/pip-build-tl_DyR/base65536/setup.py';f=getattr(tokenize, 'open', open)(<strong>file</strong>);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, <strong>file</strong>, 'exec'))" install --record /var/folders/2h/n5zk2_w50273k4hdxw8l05240000gn/T/pip-ZZqmm6-record/install-record.txt --single-version-externally-managed --compile:
      running install
      running build
      running build_py
      creating build
      creating build/lib
      creating build/lib/base65536
      copying base65536/<strong>about</strong>.py -> build/lib/base65536
      copying base65536/<strong>init</strong>.py -> build/lib/base65536
      copying base65536/core.py -> build/lib/base65536
      running install_lib
      creating /Library/Python/2.7/site-packages/base65536
      error: could not create '/Library/Python/2.7/site-packages/base65536': Permission denied</p>
  
  <pre><code>----------------------------------------
  </code></pre>
  
  <p>Command "/usr/bin/python -u -c "import setuptools, tokenize;<strong>file</strong>='/private/var/folders/2h/n5zk2_w50273k4hdxw8l05240000gn/T/pip-build-tl_DyR/base65536/setup.py';f=getattr(tokenize, 'open', open)(<strong>file</strong>);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, <strong>file</strong>, 'exec'))" install --record /var/folders/2h/n5zk2_w50273k4hdxw8l05240000gn/T/pip-ZZqmm6-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/2h/n5zk2_w50273k4hdxw8l05240000gn/T/pip-build-tl_DyR/base65536/</p>
  
  <p>How can I fix this?</p>