title: Difference between 'python setup.py install' and 'pip install'
body: <p>I have an external package I want to install into my python virtualenv from a tar file.
  What is the best way to install the package?</p>
  
  <p>I've discovered 2 ways that can do it:</p>
  
  <ol>
  <li>Extract the tar file, then run <code>python setup.py install</code> inside of the extracted directory.</li>
  <li><code>pip install packagename.tar.gz</code> from example # 7 in <a href="https://pip.pypa.io/en/stable/reference/pip_install/#examples" rel="noreferrer">https://pip.pypa.io/en/stable/reference/pip_install/#examples</a></li>
  </ol>
  
  <p>Is if there is any difference doing them in these 2 ways.</p>