Pip3 Install Geoip2, com/simple pip install geoip2 然后下载资源 搜一搜GeoLite2-Country.