Question

Does anybody know how to install GeoIP's C library on Windows in a few simple steps. Even a few complicated steps will do. I researched and tried to compile it from the setup file but failed several times. Sometimes, I get errors saying that GeoIP.h could not be located. Other times I get that bugtrack_url is not a valid option for compilation.

I have tried using pip install GeoIP and I have also tried just using setup.py.

Has anyone had any luck setting this up on Windows?

Était-ce utile?

La solution

The 'GeoIP.h could not be located' error indicates that you need to install libgeoip-dev first. Though I have no idea how to install it on windows easiy.

I suggest you to use the pygeoip package, based on the following reasons:

  • pygeoip is a pure python package
  • pygeoip supports Python 3
  • pygeoip has wheel support
  • pygeoip has better documentation
  • pygeoip has 50x more downloads on pypi.
  • pygeoip is compatible with GeoIP's API
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top