ngxtop 报错

[root@**** ~]# ngxtop
Traceback (most recent call last):
  File "/usr/local/bin/ngxtop", line 7, in 
    from ngxtop.ngxtop import main
  File "/usr/local/lib/python3.6/site-packages/ngxtop/ngxtop.py", line 77, in 
    from config_parser import detect_log_config, detect_config_path, extract_variables, build_pattern
ModuleNotFoundError: No module named 'config_parser'

解决方法:
卸载后,重新从github 下载 然后手动安装

[root@**** ~]# pip3 uninstall ngxtop 
[root@**** ~]# git clone https://github.com/lebinh/ngxtop.git

进入目录进行手动安装安装

[root@**** ~]# cd ngxtop/
[root@**** ngxtop]# pip3 install .