title: Upgrade pip in Amazon Linux
body: <p>I wanted to deploy my Python app on Amazon Linux AMI 2015.09.1, which has Python2.7 (default) and pip (6.1.1). Then, I upgraded the pip using the command:</p>
  
  <pre><code>sudo pip install -U pip
  </code></pre>
  
  <p>However, it seemed broken, and showed the message when I tried to install packages:</p>
  
  <pre><code>pkg_resources.DistributionNotFound: pip==6.1.1
  </code></pre>
  
  <p>I found out that pip remove the previous files located in <code>/usr/bin/</code>, and installed the new one in <code>/usr/local/bin</code>. Thus, I tried to specify the location by using the command:</p>
  
  <pre><code>sudo pip install -U --install-option="--prefix='/usr/bin'" pip
  </code></pre>
  
  <p>Nevertheless, it still installed the new one in <code>/usr/local/bin</code>. In addition to that, pip could not work well with <code>sudo</code> although it successfully installed. The error message :</p>
  
  <pre><code>sudo: pip2.7: command not found
  </code></pre>
  
  <p>Is there a way to properly manage pip?</p>