Fix nmap.nmap.PortScannerError: ‘nmap program was not found in path – Python Tutorial

By | September 3, 2020

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.

Install nmap

As to us, our system is win 10. We should download nmap.exe and install it.

We can download it here.

https://nmap.org/book/inst-windows.html

download windows nmap

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:

Add nmap.exe path to environment variable

If you find this error still exist. You should restart you IDE.

As to us, we restart our eclipse, then this error disappeared.

Leave a Reply