title: The folder you are executing pip from can no longer be found
body: <p>I have a virtual machine under Hyper V that represents a cluster single-node of Hortonworks Data Platform with the following characteristics:</p>
  
  <ul>
  <li><p>OS: centos 7.6.1810 minimal</p></li>
  <li><p>python: 2.7.5</p></li>
  </ul>
  
  <p>I installed pip package with the following command :
   <code>yum -y install python-pip</code></p>
  
  <p>The installation is well finished, but when I want to check the version of pip <code>pip -V</code> it gives me this error : <strong>The folder you are executing pip from can no longer be found.</strong></p>
  
  <p>My folder <strong>/usr/local/bin/</strong> does not contain any files or folders.</p>
  
  <p>paths of python2.7 :  <strong>/usr/bin/python2.7</strong> /usr/bin/python2  /usr/bin/python</p>
  
  <p>the cmd <code>which python</code> returns : <code>/bin/python</code></p>
  
  <p><strong>paths of pip : /usr/bin/pip /usr/bin/pip2 /usr/bin/pip2.7</strong></p>
  
  <pre><code>which -a pip
  /bin/pip
  /usr/bin/pip
  </code></pre>
  
  <p>I'm stuck thanks for helping me please.</p>