centos7-python38 python38 SPEC for CentOS7 For compiling needs fresh gcc set (package devtoolset-9-gcc-c++) from Software Collections. sudo yum install centos-release-scl-rh yum install devtoolset-9-gcc-c++ Thanks for @tlusk and @BOPOHA for helping!