I'm trying to install the ipwhois package in Jupyter Notebook to use the IpWhois function to find the owners of an IP Address.
For reference, I'm using a Conda environment to run the notebook. I've used pip to install the package :
!pip install ipwhois
And I'm importing the IPWhois module here :
from ipwhois import IPWhoisip_add='aa.aa.aa.aa'obj=IPWhois(ip_add)owner=obj.lookup_rdap()print(owner)
Post which, I'm receiving a ModuleNotFound error :
---------------------------------------------------------------------------ModuleNotFoundError Traceback (most recent call last)/var/folders/cj/8tfy4pyx24j_7_mzhq_ny7hr0000gn/T/ipykernel_45872/329144354.py in <module>----> 1 from ipwhois import IPWhois 2 3 ip_add='aa.aa.aa.aa' 4 obj=IPWhois(ip_add) 5 owner=obj.lookup_rdap()ModuleNotFoundError: No module named 'ipwhois'
I've tried uninstalling and reinstalling the package, using pip3 instead of pip, upgrading my pip version and checking the existence of the package using pip show ipwhois. I'm not sure where the problem is or how I can fix it. Any help or advice would be greatly appreciated.