#PYTHON 2.7.9 CENTOS 7 RPM INSTALL#
install ansible 1.9.4 ~]# pip install paramiko PyYAML Jinja2 httplib2 ~]# yum install python-devel <<< must install before install ~]# pip install ~]# pip install P圜rypto=2.3 I found CISCO WAE rollback python to python2.6 too… so ansible1.9 that installed by pip(python2.7) not work too…After checked again, I can install the pip under python2.6 by follow ways: 1. Install ansible1.9 under python2.7.9 bin]# python -m pip install paramiko PyYAML Jinja2 httplib2 bin]# python -m pip install bin]# python -m pip list|grep ansible #!/usr/bin/python2.6 -t <<< changed python2.6 from python #!/usr/bin/python2.6 -tt <<< changed python2.6 from ~]# more /usr/share/createrepo/genpkgmetadata.py Modify Related py file that need old versionįollow list that only I matched when I install CISCO WAE, maybe have other file need python2.6, so you can use similar way to correct that: ~]# more /usr/share/createrepo/worker.py #!/usr/bin/python2.6 <<< changed python2.6 from pythonĦ. Modify yum conf that only work under python2.6 bin]# more /usr/bin/yum Installing collected packages: setuptools, pipĥ. Activate pip function under python 2.7.9 bin]# python -m ensurepip Set up a software link under “/usr/bin/” Python-2.7.9]# cd bin]# rm -rf bin]# ln -s /usr/local/python2.7/bin/python2.7 bin]# python -VĤ. Python have multi dependencie ~]# yum install ~]# yum install openssl-develĢ. Install some package that require by python Upgrade PythonĪfter checked from follow link, python 2.7.9 integrate pip, so install this version ?
#PYTHON 2.7.9 CENTOS 7 RPM UPGRADE#
From official website, suggest not use 2.6 under pip, so I need to upgrade python to 2.7 too.īut I found WAE use 2.6 after I succeed upgrade python to 2.7…Summarized the totally steps that will help me review in future. After installed Centos 6.7 for CISCO WAE, I found python version is 2.6 that is much older, and I need ansible1.9, but Centos default upgrade to ansible2.2… in order to easy management ansible1.9 that is python package, I plan to install PIP.