python-nmap模块运行报错‘module‘ object has no attribute ‘PortScanner‘
python使用nmap模块时报错File “nmap.py”, line 10, in nm = nmap.PortScanner()AttributeError: ‘module’ object has no attribute ‘PortScanner’解决方法 卸载nmap模块和python-nmap模块,重新安装python-nmap即可。#先卸载之前安装过的pip uninstall nmappip uninstall python-nmap#再进行安装pip ins