我正在尝试在 rhel8.3 中的 python2 中导入 sos 包,但出现以下错误
[root@svr_1 site-packages]# python2.7
Python 2.7.17 (default, Aug 18 2020, 09:42:29)
[GCC 8.3.1 20191121 (Red Hat 8.3.1-5)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sos
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named sos
软件包的 rpm 已安装。
[root@svr_1 site-packages]# yum list installed | grep sos
sos.noarch 3.9.1-6.el8 @InstallMedia
[root@svr_1 site-packages]#
有人有什么主意吗。在 rhel7 中,这没问题。