简体   繁体   English

在centos7.4上安装python2.6

[英]Install python2.6 on centos7.4

I am a beginner at ambari following below url to build. 我是ambari的初学者,遵循以下网址进行构建。 https://cwiki.apache.org/confluence/display/AMBARI/Installation+Guide+for+Ambari+2.6.1 https://cwiki.apache.org/confluence/display/AMBARI/Installation+Guide+for+Ambari+2.6.1

I find that it needs python2.6, but the version of yum source is above 2.7. 我发现它需要python2.6,但是yum源的版本高于2.7。 How can I install python2.6 on centos7.4? 如何在centos7.4上安装python2.6?

I have tried epel source but no help. 我尝试了epel来源,但没有帮助。

Try this 尝试这个

sudo yum install python26

or 要么

sudo yum --enablerepo=epel install python26

or see this stackover post 或查看此stackover帖子

It is a bad question since i just want to build ambari-2.6.1. 这是一个不好的问题,因为我只想构建ambari-2.6.1。

On my side, i make a soft link '/usr/bin/python2.6' to '/usr/bin/python2.7', then everything works. 在我这边,我将软链接'/usr/bin/python2.6'链接到'/usr/bin/python2.7',然后一切正常。

But after try to use, it failed. 但是尝试使用后,它失败了。 It seems that soft link can not work as expected. 似乎软链接无法正常工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM