AttributeError: module 'matplotlib.pyplot' has no attribute 'show'
解决办法:
可运行的环境中matplotlib的版本是3.3.0,而有问题的环境的版本是3.3.1,所以尝试降级,成功解决。
报错搜索解决方案的时候要注意,比如下面这个错误,如果只复制第二行,那么并不能很快搜索出解决办法,向上多复制一些内容,会更容易找到答案。
num = operator.index(num)
TypeError: 'numpy.float64' object cannot be interpreted as an integer
解决办法:
TypeError: ‘numpy.float64’ object cannot be interpreted as an integer
pip install -U numpy==1.17.0 -i https://pypi.tuna.tsinghua.edu.cn/simple