![]() Or Run the below command: #sed -i 's/python/python2. The solution is to edit the 1st line of the file: /usr/bin/yum as to below: #/usr/bin/python2.4 This is because yum is dependent on Python2.4, but we made the default python to point to python2.7 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 There was a problem importing one of the Python modules ![]() You can test it out using the below command:įor example, if you try to install a package via yum command, say “ yum install ntp” then you’ll may get an error as shown below: #yum install ntp Note: Though the above procedure has updated the python, but this has broken yum. You can also download the latest version of python here and follow the same procedure as below: #wget -c -no-check-certificate Unpack: #tar -xvzf Python-2.7.6.tgz #cd Python-2.7.6 Compile: #./configure Install Python: #make & make install Backup the old python executable: mv /usr/bin/python /usr/bin/python_bak Link the latest installed python to default python ln -s /usr/local/bin/python2.7 /usr/bin/python Please help me how to upgrade it manually? Will it not conflict with the existing one?Īnswer: It should be noted that before upgrading, you need to update several development kit like openssl-devel, sqlite-devel etc., So just do yum -y upgrade python would update the dependency softwares too. ![]() I never understand when 2.6 version is already outdated why RHEL community never upgrade it as default Python for Release 6. Even though I tried to upgrade it using yum, it still upgraded to a minor version of 2.4 and not 2.6 or later. Installing Python(2.7/3.4) on Centos It’s Pain in the Ass to install python on Linux different Flavors. ![]() For SQLMAP application I need to upgrade Python to version 2.6 and above. Question: By default CentOS 6 comes with a Python version 2.4. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |