title: I can't install PIP on MacOS Sierra
body: <p>I've been running Python 3 in Pycharm for a while now, and I tried to install a new module and it failed to install. Specifically it gave me a "Non-zero exit code (1)" and told me to attempt to install it from my terminal using PIP. I have since updated and reinstalled Pycharm and it still will not install new modules. </p>
  
  <p>In the terminal, I attempted </p>
  
  <pre><code>pip --version
  </code></pre>
  
  <p>The response:</p>
  
  <pre><code>-bash: pip: command not found
  </code></pre>
  
  <p>I look up how to install PIP, and try:</p>
  
  <pre><code>sudo easy_install pip
  </code></pre>
  
  <p>This is what it said:</p>
  
  <pre><code>Searching for pip
  Reading https://pypi.python.org/simple/pip/
  Download error on https://pypi.python.org/simple/pip/: [SSL:
  TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol   version 
  (_ssl.c:590) -- Some packages may not be found!
  Couldn't find index page for 'pip' (maybe misspelled?)
  Scanning index of all packages (this may take a while)
  Reading https://pypi.python.org/simple/
  Download error on https://pypi.python.org/simple/: [SSL:     
  TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590)
  -- Some packages may not be found!
  No local packages or download links found for pip
  error: Could not find suitable distribution for     
  Requirement.parse('pip')
  </code></pre>
  
  <p>So I go back to google and do a little more searching and find to try it without the sudo, so</p>
  
  <pre><code>easy_install pip
  </code></pre>
  
  <p>Then it gives me this:</p>
  
  <pre><code>error: can't create or remove files in install directory
  
  The following error occurred while trying to add or remove files in the
  installation directory:
  
  [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/test-       
  easy-install-2117.pth'
  
  The installation directory you specified (via --install-dir, --prefix,  
  or the distutils default setting) was:
  
  /Library/Python/2.7/site-packages/
  
  Perhaps your account does not have write access to this directory?  If
  the installation directory is a system-owned directory, you may need to
  sign in as the administrator or "root" account.  If you do not have 
  administrative access to this machine, you may wish to choose a   
  different installation directory, preferably one that is listed in your
  PYTHONPATH environment variable.
  
  For information on other options, you may wish to consult the
  documentation at:
  
  https://pythonhosted.org/setuptools/easy_install.html
  
  Please make the appropriate changes for your system and try again.
  </code></pre>
  
  <p>so then I find this earlier question: <a href="https://stackoverflow.com/questions/6012246/why-is-python-easy-install-not-working-on-my-mac">Why is Python easy_install not working on my Mac?</a></p>
  
  <p>I try:</p>
  
  <pre><code>sudo rm -f /usr/bin/easy_install*
  </code></pre>
  
  <p>and it gives me</p>
  
  <pre><code>rm: /usr/bin/easy_install: Operation not permitted
  rm: /usr/bin/easy_install-2.6: Operation not permitted
  rm: /usr/bin/easy_install-2.7: Operation not permitted
  </code></pre>
  
  <p>So then I find this old question: <a href="https://stackoverflow.com/questions/47997164/installing-pip-on-macos-does-not-work-anymore">Installing pip on macOS does not work (anymore)</a>, which has 2 answers saying to just install homebrew. So I try that:</p>
  
  <pre><code>/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.comnn
  /Homebrew/install/master/install)"
  </code></pre>
  
  <p>Homebrew installs, and I think I'm ready to go. </p>
  
  <pre><code>pip --version
  
  -bash: pip: command not found
  </code></pre>
  
  <p>EDIT: I tried </p>
  
  <pre><code>echo $PATH
  </code></pre>
  
  <p>I had forgotten that I originally used Python through Anaconda and removed it, and that's probably what started this. Is there any way to fix this?</p>