0
我正在嘗試升級Linux Box中的Python版本。通過廚師食譜在Linux中安裝python2.7
[[email protected] ~]# python --version
Python 2.6.6
[[email protected] ~]#
我跑:
yum install python27
,並在此之後,以反映蟒蛇2.7版本,我運行:
scl enable python27 bash
當前會話它給
[[email protected] ~]# python --version
Python 2.7.8
[[email protected] ~]#
當我正在寫作時廚師的菜譜,我的食譜是這樣的:
# install python27 package
yum_package 'python27' do
action :install
end
# enable python27 bash
execute 'python27_bash' do
command 'scl enable python27 bash'
end
,我致電本食譜中的節點,但它不是升級到python2.7當前會話。
檢查廚師客戶端的輸出 – AlexD
我已將菜譜添加到運行列表中並稱爲「廚師客戶端」。 但沒有運氣。 – joy