title: Could not install packages due to an EnvironmentError: [Errno 13]
body: <p>In my MacOS Mojave terminal I wanted to install a python package with pip. At the end it says:</p>
  
  <pre><code>You are using pip version 10.0.1, however version 18.1 is available.
  You should consider upgrading via the 'pip install --upgrade pip' command.
  </code></pre>
  
  <p>So I wanted to update pip with the given command but I got an error:</p>
  
  <pre><code>Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: 
  '/Library/Python/2.7/site-packages/pip-18.0-py2.7.egg/EGG-INFO/PKG-INFO'
  Consider using the `--user` option or check the permissions.
  </code></pre>
  
  <p>I don't really understand what to do now. <strong>Also I realized it says Python 2.7 in the error message but I have and want to use only python 3.</strong></p>