title: running pip install from python 2.7.5
body: <p>I have a CentOS server (5.6) which has Python 2.4.3 on it. I have another local installation of Python (2.7.5) installed in <code>/opt</code> and soft-links created as follows <code>/usr/local/bin/python2.7</code> and <code>/usr/local/python2.7</code>. I want to install python-requests using <code>pip</code>. While installing using the command <code>pip install requests</code>, I get the following error:</p>
  
  <pre><code>root ~/ff_test_ff # pip install requests
  Unpacking ./requests
    Running setup.py egg_info for package from file:///root/ff_test_ff/requests
      Traceback (most recent call last):
        File "&lt;string&gt;", line 14, in ?
        File "/tmp/pip-MM685m-build/setup.py", line 6, in ?
          import requests
        File "requests/__init__.py", line 58
          from . import utils
               ^
      SyntaxError: invalid syntax
      Complete output from command python setup.py egg_info:
      Traceback (most recent call last):
  
    File "&lt;string&gt;", line 14, in ?
  
    File "/tmp/pip-MM685m-build/setup.py", line 6, in ?
  
      import requests
  
    File "requests/__init__.py", line 58
  
      from . import utils
  
           ^
  
  SyntaxError: invalid syntax
  
  ----------------------------------------
  Command python setup.py egg_info failed with error code 1
  Storing complete log in /root/.pip/pip.log
  </code></pre>
  
  <p>I'm assuming it's still trying to use Python 2.4. I <a href="https://github.com/kennethreitz/requests/issues/351" rel="nofollow">checked here</a> which says 2.4 isn't supported. So how do I run the <code>pip install</code> command but use python2.7 instead?</p>