Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save melvincabatuan/db38308697faf6e24cb0 to your computer and use it in GitHub Desktop.
Save melvincabatuan/db38308697faf6e24cb0 to your computer and use it in GitHub Desktop.
[SOLVED] Could not find platform independent libraries
[root@cobalt tools]# yum install eog
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
ImportError: No module named site
[root@cobalt tools]# echo $LD_LIBRARY_PATH
:/usr/local/lib:/usr/local/lib:/root/anaconda/lib/
#make LD_LIBRARY_PATH blank
[root@cobalt tools]# export LD_LIBRARY_PATH=''
[root@cobalt tools]# echo $LD_LIBRARY_PATH
@jamesghag
Copy link

yum clean all
Could not find platform independent libraries
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to [:<exec_prefix>]
'import site' failed; use -v for traceback
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

No module named yum

Please install a package which provides this module, or
verify that the module is installed correctly.

It's possible that the above module doesn't match the
current version of Python, which is:
2.6.6 (r266:84292, May 1 2012, 13:52:17)
[GCC 4.4.6 20110731 (Red Hat 4.4.6-3)]

If you cannot solve this problem yourself, please go to
the yum faq at:
http://yum.baseurl.org/wiki/Faq

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment