달력

12

« 2020/12 »

  •  
  •  
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  •  
  •  
반응형



 

 

 

import mglearn 에러

ImportError: cannot import name 'imread'

File "C:\CodeLab\HangulFont.py", line 2, in <module>

    import mglearn

  File "C:\Python\Python36\lib\site-packages\mglearn\__init__.py", line 1, in <module>

    from . import plots

  File "C:\Python\Python36\lib\site-packages\mglearn\plots.py", line 2, in <module>

    from .plot_interactive_tree import plot_tree_progressive, plot_tree_partition

  File "C:\Python\Python36\lib\site-packages\mglearn\plot_interactive_tree.py", line 8, in <module>

    from scipy.misc import imread

ImportError: cannot import name 'imread'

 

 

 

해결방법

Step 1: imageio 패키지 - install

https://codedragon.tistory.com/10036

 

 

 

 

Step 2: plot_animal_tree.py 수정

C:\Python\Python36\Lib\site-packages\mglearn


 


 

 

수정

from scipy.misc import imread

수정

from imageio import imread

 


 

 

 

 

Step 3: plot_interactive_tree.py 수정

 

C:\Python\Python36\Lib\site-packages\mglearn


 


 

 

8번째 라인에 있습니다.

수정

from scipy.misc import imread

수정

from imageio import imread

 


 


반응형

'Development > Python' 카테고리의 다른 글

NumPy 슬라이싱  (0) 2020.01.10
MySQL DB Module  (0) 2020.01.10
ImportError: cannot import name 'imread' 에러 해결방법  (0) 2020.01.10
불린 인덱스를 통한 데이터 정제 - 해설  (0) 2020.01.09
퍼셉트론 학습 절차  (0) 2020.01.09
pandas.read_csv()  (0) 2020.01.09
Posted by codedragon codedragon

댓글을 달아 주세요