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