ValueError: numpy.ndarray size changed, may indicate binary incompatibility.

在安装basemap时,conda install basemap 提示安装正常,导入测试,打开jupyter 输入下列代码测试时,提示 ValueError: numpy.ndarray size changed, may indicate binary incompatibility.

这个是numpy版本低的原因,升级numpy即可      pip install --upgrade numpy

from mpl_toolkits.basemap import Basemap
import matplotlib.pyplot as plt
m = Basemap(projection='mill')
m.drawcoastlines()
plt.show()

然后再运行下面的代码,出来图片就表示正常了

from mpl_toolkits.basemap import Basemap
import matplotlib.pyplot as plt
m = Basemap(projection='mill')
m.drawcoastlines()
plt.show()

你可能感兴趣的:(python,numpy)