bash: python3.7: 未找到命令 RHEL

bash: python3.7: 未找到命令 RHEL

所以我使用本指南安装了 python 3.7.11:https://tecadmin.net/install-python-3-7-on-centos/

遵循指南工作顺利,但当我这样做时python --version,或者python3 --version我不断收到命令未找到。

[root@ip-172-31-95-243 src]# python --version
bash: python: command not found

[root@ip-172-31-95-243 src]# python3.7 --version
bash: python3.7: command not found

[root@ip-172-31-95-243 src]# whereis python
python: /usr/lib/python3.6 /usr/lib64/python3.6 /usr/local/bin/python3.7m /usr/local/bin/python3.7 /usr/local/bin/python3.7m-config /usr/local/lib/python3.7 /usr/include/python3.6m /usr/share/man/man1/python.1.gz /usr/src/Python-3.7.11/python

[root@ip-172-31-95-243 src]# whereis python3
python3: /usr/lib/python3.6 /usr/lib64/python3.6 /usr/local/bin/python3.7m /usr/local/bin/python3.7 /usr/local/bin/python3.7m-config /usr/local/lib/python3.7 /usr/include/python3.6m

如上所示,python 和 python3 已安装,但版本命令不起作用。

谁能帮我?

相关内容