Hi peeps, I’m hoping someone here can help, as I have scoured the internet and found nothing useful yet. I have some assignments coming up and some of the labs want me to to use geoip2, for geolocation mapping an IP address, etc…But Python, MS Visual Code just doesn’t recognize this at all. I’ve looked in docs.python.org and there’s nothing there either. Why would a tutor force me to use something that doesn’t exist? It doesn’t make sense. Maybe the syntax has changed since they last used it.
Can anyone help? I don’t need help in using it, the problem is that Python doesn’t recognize geoip2 or geolite. I have used pip to install the modules, but for whatever reason, MS Code has no idea what I am talking about.
Yeah that’s it, but MS Code doesn’t recognize it. When I use import geoip2.database or anything, it states that it cannot resolve geoip2. I’ve seen code grabs of people using it, but I don’t know how old those are, or what they did to get it to work for them. It just won’t recognize it, when I try to use it. Like I wrote, I have installed the module using pip, so it is there, but MS Visual Code just won’t recognize it.
Third-party libraries, such as geoip2, need to be installed before they can be used. They are code that was written by someone else, and they do not come with Python. Some IDEs try to provide an interface to look up and install these libraries. I don’t know how MS Visual Code handles this.