I am facing some error while using python-nmap:
I am running the following:
import nmap
nm = nmap.PortScanner()
I am getting this error:
Traceback (most recent call last): File "a.py", line 2, in <module> nm = nmap.PortScanner() File "/home/edureka/.local/lib/python2.7/site-packages/nmap/nmap.py", line 131, in __init__ os.getenv('PATH') nmap.nmap.PortScannerError: 'nmap program was not found in path. PATH is : /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin'