1. まず現在の Python バージョンを確認します
[root@test bin]# python
Python 2.7.5 (default, Aug 4 2017, 00:39:18)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-16)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
2. /usr/bin ディレクトリで Python のバージョンを確認します。
[root@test admin]# cd /usr/bin/
[root@test bin]# ll
3. /usr/bin ディレクトリ内の Python を削除します。
rm -rf /usr/bin/python
4. python2.7のソフトリンクを追加
ln -s /usr/bin/python2.7 /usr/bin/python
5.Pythonのバージョンを確認する
[root@test bin]# python
Python 2.7.5 (default, Aug 4 2017, 00:39:18)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-16)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>