Microsoft Windows [Version 10.0.17134.648] (c) 2018 Microsoft Corporation. All rights reserved. (venv) C:\Users\Mario\PycharmProjects\New Project 1>pip3 install nmap Requirement already satisfied: nmap in c:\users\mario\pycharmprojects\new project 1\venv\lib\site-packages (0.0.1) You are using pip version 10.0.1, however version 19.0.3 is available. You should consider upgrading via the 'python -m pip install --upgrade pip' command.I'm trying to use nmap in a python script. When I try to install it, it says that I already have nmap installed... So it should work in my python script right? But it's not working. I get this error when I try to use nmap in a script:
(I have "import nmap" at the top of the script)
"C:\Users\Mario\PycharmProjects\New Project 1\venv\Scripts\python.exe" "C:/Users/Mario/PycharmProjects/New Project 1/script.py" Traceback (most recent call last): File "C:/Users/Mario/PycharmProjects/New Project 1/script.py", line 3, in <module> ns = nmap.PortScanner() AttributeError: module 'nmap' has no attribute 'PortScanner' Process finished with exit code 1