title: libpython2.7.so.1.0: cannot open shared object file: No such file or directory
body: <p>I have trying to run python script from the terminal but getting the next error message :</p>
  
  <pre><code>ImportError: libpython2.7.so.1.0: cannot open shared object file: No such file or directory
  </code></pre>
  
  <p>if I run print sys.version I get :</p>
  
  <pre><code>&gt;&gt;&gt; import sys
  &gt;&gt;&gt; print sys.version
  2.7.3 (default, Feb 26 2013, 16:27:39)
  [GCC 4.4.6 20120305 (Red Hat 4.4.6-4)]
  </code></pre>
  
  <p>and if I run ldd /usr/local/bin/python</p>
  
  <pre><code>&gt;&gt; ldd /usr/local/bin/python
          linux-vdso.so.1 =&gt;  (0x00007fff219ff000)
          libpthread.so.0 =&gt; /lib64/libpthread.so.0 (0x0000003300c00000)
          libdl.so.2 =&gt; /lib64/libdl.so.2 (0x0000003300800000)
          libutil.so.1 =&gt; /lib64/libutil.so.1 (0x0000003310e00000)
          libm.so.6 =&gt; /lib64/libm.so.6 (0x0000003300000000)
          libc.so.6 =&gt; /lib64/libc.so.6 (0x0000003300400000)
          /lib64/ld-linux-x86-64.so.2 (0x00000032ffc00000)
  </code></pre>
  
  <p>I don't understand which python do I have ? why running this python script from the terminal is failing ?
  I have tried to run </p>
  
  <pre><code>export LD_LIBRARY_PATH=/usr/local/lib/python2.7/
  </code></pre>
  
  <p>with no luck...</p>
  
  <p>BTW - I have managed to debug this script in eclipse with the python plug-in, and when I look at the debug configuration I see that the PYTHONPATH is set for :</p>
  
  <pre><code>/..../eclipse/plugins/org.python.pydev_3.1.0.201312121632/pysrc/pydev_sitecustomize:/..../workspace/style_checker/src:/usr/local/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg:/usr/local/lib/python2.7/site-packages/pip-1.2.1-py2.7.egg:/usr/local/lib/python2.7:/usr/local/lib/python2.7/plat-linux2:/usr/local/lib/python2.7/lib-tk:/usr/local/lib/python2.7/lib-dynload:/usr/local/lib/python2.7/site-packages
  </code></pre>
  
  <p>so eclipse manage somehow to find this python2.7 libs... so how can I do it with out eclipse and from the command line ? what am I doing wrong ? using CentOS6.</p>