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 nmap
pip uninstall python-nmap

#再进行安装
pip install python-nmap

OK,问题解决。

python-nmap模块运行报错'module' object has no attribute 'PortScanner'

相关文章:

  • 2022-12-23
  • 2022-03-11
  • 2021-09-15
  • 2022-12-23
  • 2021-10-19
  • 2021-08-08
  • 2022-12-23
  • 2021-11-10
猜你喜欢
  • 2022-12-23
  • 2021-04-07
  • 2022-01-07
  • 2021-09-02
  • 2022-12-23
  • 2022-02-26
  • 2022-12-23
相关资源
相似解决方案