'rpm installation is failing in rhel 7 due to failed dependencies: /usr/bin/python3

rpm -ivh xxx.rpm is not able to detect python3.4 installed in the rhel 7 machine.

rpm installation is failing with the below error error: Failed dependencies: /usr/bin/python3 is needed by xxx

I have created a symlink to point python3 to python3.4

[root@xxx-1 bin]# ls -al python*
lrwxrwxrwx. 1 root root     7 May  5 15:35 python -> python2
lrwxrwxrwx. 1 root root     9 May  5 15:35 python2 -> python2.7
-rwxr-xr-x. 1 root root  7216 Mar  3  2020 python2.7
-rwxr-xr-x. 1 root root  1835 Mar  3  2020 python2.7-config
lrwxrwxrwx. 1 root root    16 May  5 15:35 python2-config -> python2.7-config
lrwxrwxrwx. 1 root root     9 May  9 15:20 python3 -> python3.4
-rwxr-xr-x. 2 root root 11312 Jun 24  2021 python3.4
-rwxr-xr-x. 2 root root 11312 Jun 24  2021 python3.4m
lrwxrwxrwx. 1 root root    14 May  5 15:35 python-config -> python2-config

What could be wrong Thanks for the time.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source