[root@localhost ~]# iotop
No module named iotop.ui
To run an uninstalled copy of iotop,
launch iotop.py in the top directory

[root@localhost ~]# python -V
Python 2.7.16


[root@localhost ~]# whereis iotop
iotop: /usr/sbin/iotop /usr/share/man/man8/iotop.8.gz
[root@localhost ~]# vim /usr/sbin/iotop

#!/usr/bin/python 修改成 #!/usr/bin/python2.6

因为升级过python并覆盖为默认了,但一大部分软件是基于python2.6的