juypter notebook(vscode), %matplotlib qt5 에러

이세돌의망치·2024년 5월 24일
0

%matplotlib qt5오류 일지

가상환경에 matplotlib을 설치 후 %matplotlib qt5 적용하는데 오류가 발생했다.

결론만 말하자면

# Conda 저장소에서 패키지 설치
conda install -c conda-forge matplotlib matplotlib-base matplotlib-inline qt qt-main qt-webengine

# PyPI에서 패키지 설치
pip install qt5-applications qt5-tools

해당 모듈을 설치하면 된다

오류 이유

가상환경에서 matplotlib 만 설치했었는데 딸려오는 모듈들이 설치되지 않았던 모양이다

matplotlib-base
qt5-applications
qt5-tools

아마 이 세가지 모듈이 설치되지 않아서 그랬던 것 같다. 설치 후에는 적용됬다.

profile
코딩초보

0개의 댓글