Python从mpl_toolkits.basemap导入_proj导致ImportError [PyGeoIpMap]

时间:2018-08-30 06:05:17

标签: python python-3.x matplotlib-basemap pyproj

Traceback (most recent call last):
  File "/Users/christian/Documents/python-study/PyGeoIpMap- 
master/pygeoipmap.py", line 15, in <module>
from mpl_toolkits.basemap import Basemap
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/mpl_toolkits/basemap/__init__.py", line 30, in <module>
from mpl_toolkits.basemap import pyproj
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/mpl_toolkits/basemap/pyproj.py", line 50, in <module>
from mpl_toolkits.basemap import _proj
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/mpl_toolkits/basemap/_proj.so, 2): Symbol not found: _PyString_Type
  Referenced from: /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/mpl_toolkits/basemap/_proj.so
  Expected in: flat namespace
 in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/mpl_toolkits/basemap/_proj.so
[Finished in 0.524s]

我已经为此工作了整整1天,我已经重新安装了PyGeoIpMap的所有必需软件包,但我仍然收到此错误。请帮忙。

0 个答案:

没有答案