我正在尝试使用' nmap' python.i中的模块使用windows,pycharm,python 3.6.i直接从pycharm内部安装了python-nmap
模块(安装' nmap'模块显示错误:nmap has no attribute called 'PortScanner'
) 。我尝试了4个小时。无法解决这个问题。
import nmap
ns = nmap.PortScanner()
运行此命令会出现以下错误:
nmap.nmap.PortScannerError: "nmap program was not found in path. PATH is :
C:\\ProgramData\\Oracle\\Java\\javapath;C:\\Program Files (x86)\\Intel\\iCLS
Client\\;C:\\Program Files\\Intel\\iCLS
Client\\;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\IPT;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\IPT;C:\\Users\\Tanmay's\\AppData\\Local\\Programs\\Python\\Python36-32"
我是python和nmap的新手......真的很感激你的帮助。