解决方法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'所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)