linux - Python Redhat version issue -
possible duplicate:
upgrade python without breaking yum
i'm running redhat vm (2.6.18-274.el5 64 bit). installed nodejs on vm in order use browserstack. nodejs running had upgrade python 2.6 or above. installed 2.7 source using make altinstall. createda hard-link point 2.4 2.7. checking python -v shows 2.7 being default. worked out fine , node , running.
there problem importing 1 of python modules required run yum. error leading problem was: no module named yum please install package provides module, or verify module installed correctly. it's possible above module doesn't match current version of python, is: 2.7.2 (default, jul 2 2012, 23:35:52) [gcc 4.1.2 20080704 (red hat 4.1.2-51)] if cannot solve problem yourself, please go yum faq at: http://wiki.linux.duke.edu/yumfaq
my problem yum. it's no longer working looking older version of python 2.4? there anyway can have both of them working in yum , node both using different versions?
there 2 issues here. 1 broke system python. yum installed in python's site packages. if damage python, yum break. breaking system python installation stupid idea. maybe made backups, or have sister machine can transplant original 2.4 python.
the other issue there no problem having several pythons on same machine. install node.js must tell python use. set python=/opt/local/my/path/to/python2.7/bin/python
, possibly pythonhome
well, before running ./configure
.
Comments
Post a Comment