• 카테고리

    질문 & 답변
  • 세부 분야

    프로그래밍 언어

  • 해결 여부

    미해결

matplotlib 가 설치가 잘 되었는데 모듈을 불러오는 에러를 발생합니다.

19.07.31 23:30 작성 조회수 3.25k

0

Traceback (most recent call last):

  File "C:\ProgramData\Miniconda3\envs\my_project\lib\site-packages\matplotlib\font_manager.py", line 1353, in <module>

    fontManager = json_load(_fmcache)

  File "C:\ProgramData\Miniconda3\envs\my_project\lib\site-packages\matplotlib\font_manager.py", line 888, in json_load

    with open(filename, 'r') as fh:

FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\Zoon\\.matplotlib\\fontlist-v300.json'

 

During handling of the above exception, another exception occurred:

 

Traceback (most recent call last):

  File "chapter12.py", line 1, in <module>

    import matplotlib.pyplot as plt

  File "C:\ProgramData\Miniconda3\envs\my_project\lib\site-packages\matplotlib\pyplot.py", line 32, in <module>

    import matplotlib.colorbar

  File "C:\ProgramData\Miniconda3\envs\my_project\lib\site-packages\matplotlib\colorbar.py", line 32, in <module>

    import matplotlib.contour as contour

  File "C:\ProgramData\Miniconda3\envs\my_project\lib\site-packages\matplotlib\contour.py", line 18, in <module>

    import matplotlib.font_manager as font_manager

  File "C:\ProgramData\Miniconda3\envs\my_project\lib\site-packages\matplotlib\font_manager.py", line 1363, in <module>

    _rebuild()

  File "C:\ProgramData\Miniconda3\envs\my_project\lib\site-packages\matplotlib\font_manager.py", line 1344, in _rebuild

    fontManager = FontManager()

  File "C:\ProgramData\Miniconda3\envs\my_project\lib\site-packages\matplotlib\font_manager.py", line 978, in __init__

    ttffiles = findSystemFonts(paths) + findSystemFonts()

  File "C:\ProgramData\Miniconda3\envs\my_project\lib\site-packages\matplotlib\font_manager.py", line 264, in findSystemFonts

    fontfiles.update(win32InstalledFonts(fontext=fontext))

TypeError: 'NoneType' object is not iterable

 

이렇게 길가 나오는데요... 중간중간 font 뭐라뭐라하는거같은데.. 제 PC가 문제일까요?ㅠㅠ 

답변 1

답변을 작성해보세요.

0

https://github.com/matplotlib/matplotlib/issues/12439/

 

작년 부터 계속 발생하는 에러 같습니다.

conda 나 pip로 설치시 matplotlib를 업데이트 해서 설치하면 될 거 같습니다