1) 在运行时,报import matplotlib; matplotlib.use(‘Agg’) # pylint: disable=multiple-statemen错误,将from matplotlib import pyplot as plt 改为import matplotlib.pyplot as plt即可解决这个错误。
2) 运行时,报RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibilit。。。错误。
出现这个错误的原因是numpy版本不匹配。只需要把numpy的版本降到1.14.5就可以了。其他之类的dtype size changes 都相应换成低版本就行。
操作步骤:
1)pip uninstall numpy
2) pip install numpy==1.14.5