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

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

概述python-nmap模块运行报错'module'objecthasnoattribute'PortScanner'python使用nmap模块时报错File"nmap.py",line10,innm=nmap.PortScanner()AttributeError:'module'objecthasnoattribute'PortScanner'解决方法 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 install python-nmap

OK,问题解决。

总结

以上是内存溢出为你收集整理的python-nmap模块运行报错'module' object has no attribute 'PortScanner'全部内容,希望文章能够帮你解决python-nmap模块运行报错'module' object has no attribute 'PortScanner'所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/langs/1186952.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-06-03
下一篇 2022-06-03

发表评论

登录后才能评论

评论列表(0条)

保存