運行python程序報錯:AttributeError: module 'scipy.misc' has no attribute 'imread'
報錯原因1:scipy版本過高
解決方案:降低scipy版本,如下:
pip install scipy==1.2.1
報錯原因2:查看scipy.misc幫助文件得知,imread依賴於pillow
pip install Pillow
運行python程序報錯:AttributeError: module 'scipy.misc' has no attribute 'imread'
報錯原因1:scipy版本過高
解決方案:降低scipy版本,如下:
pip install scipy==1.2.1
報錯原因2:查看scipy.misc幫助文件得知,imread依賴於pillow
pip install Pillow
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。