Where is the problem?
import nmap
I installed nmap and python, and when I use import nmap
there is no any problem. But when us
Faced similar issue while trying to run nm= nmap.PortScanner()
I tried most of the solutions given above, but they did not work for me. The thing that worked for me was installing nmap for Mac OS X using home brew (Information at: http://brew.sh) and running the command
$ brew install nmap.
Now nm= nmap.PortScanner()
runs without the earlier error.
Running on Raspberry Pi 3 with Jessy lite
I had to:
sudo apt-get update
sudo apt-get upgrade
then I could:
sudo apt-get install nmap
nmap --version