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

運行代碼報錯:

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

配置

tensorflow=1.2.1
scipy=1.3.2
python=3.5

解決方法:

安裝pillow庫

pip install pillow
#版本爲6.2.1

scipy庫降級

pip install scipy==1.2.1

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章