What difference platform-python and python3

I have find the system include platform-python package

[root@node1 ~]# /usr/libexec/platform-python -V
Python 3.6.8

what difference with normal python3 ?

my rocky linux version :
Operating System: Rocky Linux 8.5 (Green Obsidian)
Kernel: Linux 4.18.0-348.12.2.el8_5.x86_64
Architecture: x86-64

platform-python is used by the portions of the operating system that require python, like dnf. While it is indeed a python intepreter, it really isn’t intended to be used by end user applications.

python3 is the python interpreter that you should be using with your python applications.

I think it was done this way so core operating system components would still function even if the end user doesn’t install a python interpreter.

1 Like


There are now 3 streams for “user python3”?
(3.6, 3.8, 3.9 ?)

The 3.6 version essentially symlinks to existing platform-python. The other two include binaries.

1 Like

so if I want use python for docker
I shoud install python3, not direct use platform-python