Is it possible that Nmap doesn't work on windows with python 3.6?
Nmap folders are installed but I still get an error message.
I tried in console python -m pip install nmap
and also
python -m pip install python-nmap
.
I tried this script from an earlier post:
import nmap
nm = nmap.PortScanner()
for host in nm.all_hosts():
print(host)
print(nm[host].get('osclass', 'unknown'))
Here is the error:
Traceback (most recent call last):
File "C:\Users\bart\Desktop\vortex\nmap script 1.py", line 2, in <module>
nm = nmap.PortScanner()
File "C:\Users\bart\AppData\Local\Programs\Python\Python36\lib\site-packages\nmap\nmap.py", line 131, in __init__
os.getenv('PATH')
nmap.nmap.PortScannerError: 'nmap program was not found in path. PATH is :