I installed the python-nmap library when I run the code:
python-nmap
nm = nmap.PortScanner()
I get an error as shown in the image, I know it has to do with the path, it is not configured