python - AttributeError : module 'scipy.misc' has no attribute 'imread'

标签 python error-handling scipy python-imaging-library imread

我得到这个错误AttributeError: module 'scipy.misc' has no attribute 'imread'我已经安装并导入了“scipy”和“枕头”。为什么我仍然遇到这个问题?

最佳答案

scipy.misc.imread在SciPy 1.0.0中已弃用,在Scipy 1.2.0中已删除。该文档建议改用imageio.imread

https://docs.scipy.org/doc/scipy-1.2.1/reference/generated/scipy.misc.imread.html

关于python - AttributeError : module 'scipy.misc' has no attribute 'imread' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61483222/

相关文章:

python - 第 1 行 'temp' 列的数据被截断

python - 寻找更好的方法来计算矩阵

python - 在 Python 中是否有任何函数可以解析完整的 SQL 查询?

C队列程序在满时不给出溢出错误

python - Scipy:稀疏矩阵条件删除列

python - 再次运行 Python 脚本

zend-framework - 在Zend View Helper中处理错误

ios - 在对象初始化时为错误的参数值Objective-C引发错误

python - 使用 numpy 或 scipy 将 3D 数据数组拟合到 1D 函数

python - 多个 3D 阵列(曲线)的采样/插值