In [3]: nm = nmap.PortScanner()
---------------------------------------------------------------------------
PortScannerError Traceback (most recent call last)
in ()
----> 1 nm = nmap.PortScanner()
/opt/python2.7/lib/python2.7/site-packages/nmap/nmap.pyc in __init__(self, nmap_search_path)
129 raise PortScannerError(
130 'nmap program was not found in path. PATH is : {0}'.format(
--> 131 os.getenv('PATH')
132 )
133 )
PortScannerError: 'nmap program was not found in path. PATH is : /opt/python2.7/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
In [4]: q
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
in ()
----> 1 q
NameError: name 'q' is not defined
In [5]: bye
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
in ()
----> 1 bye
NameError: name 'bye' is not defined
In [6]: quit
root@ubuntu:~# /opt/python2.7/bin/pip install python-nmap
Requirement already satisfied: python-nmap in /opt/python2.7/lib/python2.7/site-packages (0.6.1)
xadmin 0.6.1 has requirement django<2.0.0,>=1.9.0, but you'll have django 1.8.2 which is incompatible.