I'm not sure where it gets these paths from, but I clearly messed this up when I installed the foreign version in /usr/local. This includes the contents of $PYTHONPATH, but also has additional paths that the system ships with/needs. Technically it isn't $PYTHONPATH, but rather the search paths that python uses to find all of its installed modules. Thanks.Īlso, the command print "\n".join(sys.path) is a python command that takes all of the paths that are a part of the $PYTHONPATH and splits them up and prints them out one path per line. Messing up my system combined with generous help from people like you is how I learn. Your tip will help me figure out what to research. But before I do any of that, I will learn a little more about where python should and should not get installed. Then I can look into installing version 2.7.18 someplace where it will not interfere. I will see about re-installing the official version /usr/local (seems like that should probably be the correct solution). Once again you are offering me valuable assistance. It is most likely because of the different python path between accounts, but I have no idea how that is set or how to fix it, or if I even should fix it.Īny guidance, even a nudge in the right direction, is greatly appreciated. But I have no idea how that works since both accounts respond the same to "which python" (/usr/bin/python) But somehow I have managed to mung up my personal account such that it points to 2.7.18. So it appears that python2.7.5 is still installed on my system. If you cannot solve this problem yourself, please go to It's possible that the above module doesn't match the Verify that the module is installed correctly. Please install a package which provides this module, or usr/lib64/python2.7/site-packages/rpm/_rpm.so: undefined symbol: PyUnicodeUCS4_AsUTF8String Because of this, tested and stable versions of applications. There was a problem importing one of the Python modules CentOS is derived from RHEL (Red Hat Enterprise Linux), which has stability as its primary focus. Code: Select all /opt/config/bashrc > yum
0 Comments
Leave a Reply. |