When we are using nmap to scan network, we may get nmap.nmap.PortScannerError: ‘nmap program was not found in path error. In this tutorial, we will introduce how to fix this problem.
As to us, our system is win 10. We should download nmap.exe and install it.
We can download it here.
Add nmap.exe path to environment variable
nmap.exe may be added to environment variable automatically. If it is not, you can add it.
As to us, the path of nmap.exe is C:\Program Files (x86)\Nmap. We can add it as:
If you find this error still exist. You should restart you IDE.
As to us, we restart our eclipse, then this error disappeared.