CODEDRAGON ㆍDevelopment/Python
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 |
불린 인덱스를 통한 데이터 정제 - 해설 (0) | 2020.01.09 |
퍼셉트론 학습 절차 (0) | 2020.01.09 |
pandas.read_csv() (0) | 2020.01.09 |