import nmap
ModuleNotFoundError: No module named 'nmap'
the above is the result when trying to run the code after importing nmap. (I have installed python-nmap using pip in cmd)
import nmap
ModuleNotFoundError: No module named 'nmap'
the above is the result when trying to run the code after importing nmap. (I have installed python-nmap using pip in cmd)
STEP 1: Uninstall the package using:
pip3 uninstall python-nmap
STEP 2: Install the package:
pip3 install --user python-nmap
i found out the issue. when i chose a python env eg- python 3.8 32bit from the IDE, i chose a custom version thats why the imports dont work. when i chose the default env it worked. anyways thank for the help. there is nothing wrong with the IDE
I had to do two things to get it working:
Install the latest version of Python3 (3.9.6) https://www.python.org/downloads/release/python-396/
On your terminal:
pip3 install python-nmap
I had to do the following to get things to work:
On your terminal, switch to root privilege:
su - root
Then, install python-nmap module:
pip3 install python-nmap
Reference: https://github.com/securipy/nmap-scan/issues/26