欧拉系统(22.03 (LTS-SP3))能在线安装python2吗?

在欧拉(22.03 (LTS-SP3))使用命令(dnf install -y python2)在线安装python2时候报错:

Running transaction test
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing ‘dnf clean packages’.
Error: Transaction test error:
试图安装 python2-setuptools-44.1.1-2.oe2003sp4.noarch 和 python3-setuptools-50.3.2-1.noarch 会导致文件 /usr/bin/easy_install 冲突
file /usr/share/pixmaps/poweredby.png from install of centos-logos-70.0.6-3.el7.centos.el7.centos.noarch conflicts with file from package openEuler-logos-httpd-1.0-8.oe
2203sp3.noarch
file /etc/logrotate.d/dnf from install of dnf-4.2.23-11.oe2003sp4.noarch conflicts with file from package dnf-data-4.14.0-22.oe2203sp3.noarch
file /usr/lib/tmpfiles.d/dnf.conf from install of dnf-4.2.23-11.oe2003sp4.noarch conflicts with file from package dnf-data-4.14.0-22.oe2203sp3.noarch
file /usr/lib/rpm/debugedit from install of rpm-build-4.15.1-54.oe2003sp4.x86_64 conflicts with file from package debugedit-5.0-9.oe2203sp3.x86_64
file /usr/lib/rpm/find-debuginfo,

该如何解决?

openEuler 已经不支持 Python2 了,官方都不维护了

1 个赞