CentOS 8にpython-setuptoolsをインストールする方法は?

CentOS 8にpython-setuptoolsをインストールする方法は?

優秀理解するpython-setuptoolsバッグもpython-develそうで、必須スクリプトによるインストールbench:

[nsaunders@rolly ~]$ 
[nsaunders@rolly ~]$ sudo yum install -y python-setuptools python-devel
Last metadata expiration check: 0:45:02 ago on Wed 23 Sep 2020 05:36:16 AM PDT.
No match for argument: python-setuptools
No match for argument: python-devel
Error: Unable to find a match: python-setuptools python-devel
[nsaunders@rolly ~]$ 
[nsaunders@rolly ~]$ uname -a
Linux rolly 4.18.0-193.19.1.el8_2.x86_64 #1 SMP Mon Sep 14 14:37:00 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
[nsaunders@rolly ~]$ 
[nsaunders@rolly ~]$ lsb_release -a
LSB Version:    :core-4.1-amd64:core-4.1-noarch
Distributor ID: CentOS
Description:    CentOS Linux release 8.2.2004 (Core) 
Release:    8.2.2004
Codename:   Core
[nsaunders@rolly ~]$ 

CentOSこれら2つのパッケージがバージョン7に存在する場合、バージョン8にも存在したことはほぼ確実です。CentOS移動または名前が変更された可能性があります。たぶんリポジトリを追加する必要がありますか?

[nsaunders@rolly ~]$ 
[nsaunders@rolly ~]$ yum repolist
repo id                                        repo name
AppStream                                      CentOS-8 - AppStream
BaseOS                                         CentOS-8 - Base
PowerTools                                     CentOS-8 - PowerTools
docker-ce-stable                               Docker CE Stable - x86_64
epel                                           Extra Packages for Enterprise Linux 8 - x86_64
epel-modular                                   Extra Packages for Enterprise Linux Modular 8 - x86_64
extras                                         CentOS-8 - Extras
[nsaunders@rolly ~]$ 

たとえ主流のように見えますが。

ベストアンサー1

python2またはpython3を指定する必要があります。yum install python3-setuptoolsまたはyum install python2-setuptools

おすすめ記事