title: How to change python module path
body: <p>I install a python2.7.6 locally, and there is another 2.7.6 installed on cluster publicly.</p>
  
  <p>Then I use my local python to install a pip but when I 'pip list', it returns:</p>
  
  <blockquote>
    <p>$ pip list Traceback (most recent call last):   File
    "/home/zengh/.local/bin/pip", line 7, in 
        from pip import main   File "/home/zengh/.local/lib/python2.7/site-packages/pip/<strong>init</strong>.py", line
    13, in 
        from pip.utils import get_installed_distributions, get_prog   File "/home/zengh/.local/lib/python2.7/site-packages/pip/utils/<strong>init</strong>.py",
    line 5, in 
        import locale   File "/home/software/rhel6/python/2.7.6/lib/python2.7/locale.py", line 18,
    in 
        import operator ImportError: /home/software/rhel6/python/2.7.6/lib/python2.7/lib-dynload/operator.so:
    undefined symbol: _PyUnicodeUCS2_AsDefaultEncodedString</p>
  </blockquote>
  
  <p>Obviously it calls the locale.py on the cluster while my PYTHONPATH only contains my local python's path. How can I make it call the</p>
  
  <p>/.local/python2.7.6/lib/python2.7/locale.py?</p>
  
  <p>Thanks</p>