Try the following:
LD_LIBRARY_PATH=/usr/local/lib /usr/local/bin/python
Replace /usr/local/lib
with the folder where you have installed libpython2.7.so.1.0
if it is not in /usr/local/lib
.
If this works and you want to make the changes permanent, you have two options:
-
Add
export LD_LIBRARY_PATH=/usr/local/lib
to your.profile
in your home directory (this works only if you are using a shell which loads this file when a new shell instance is started). This setting will affect your user only. -
Add
/usr/local/lib
to/etc/ld.so.conf
and runldconfig
. This is a system-wide setting of course.