when i finish install python3 , i can use python2, and python3 command ,but when i try python , it says command not found ,here is some output
[root@localhost bin]# python2
Python 2.7.5 (default, Apr 11 2018, 07:36:10)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-28)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()
[root@localhost bin]# python3.6
Python 3.6.0 (default, Nov 13 2018, 00:07:36)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-28)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
[root@localhost bin]# python
-bash: python: command not found
[root@localhost bin]#
when i try whereis python
[root@localhost bin]# whereis python
python: /usr/bin/python2.7 /usr/bin/python /usr/bin/python.bak
/usr/lib/python2.7 /usr/lib64/python2.7 /etc/python /usr/include/python2.7
/usr/local/python /usr/local/python/bin/python3.6m
/usr/local/python/bin/python3.6 /usr/local/python/bin/python3.6m-config
/usr/local/python/bin/python3.6-config /usr/share/man/man1/python.1.gz
[root@localhost bin]#
when i try ls -ls in /usr/bin,in the output /usr/python/bin/python3 is flashing
[root@localhost bin]# ls -l
0 lrwxrwxrwx. 1 root root 23 Nov 13 01:05 python ->
/usr/python/bin/python3
echo $PATH
[root@localhost /]# echo $PATH
/usr/local/python/bin/:/usr/local/python/bin/:/usr/local/sbin:
/usr/local/bin:/usr/sbin:/usr/bin:/root/bin