아이공의 AI 공부 도전기

Bad key "text.kerning_factor" on line 4 in ... site-packages/matplotlib/mpl-data/stylelib/_classic_test_patch.mplstyle. You probably need to get an updated matplotlibrc file from https://github.com/matplotlib/matplotlib/blob/v3.1.3/matplotlibrc.template or from the matplotlib source distribution 관련 문제 해결

 

 

 

matplotlib에 대한 업그레이드가 필요한 것으로 보여진다.

 

이에 대한 솔루션은 크게 5개로 직접 업그레이드를 하는 방법과 간접적으로 문제를 회피할 수 있는 방법으로 나뉜다.

 

1. matplotlib upgrade 방법

conda upgrade matplotlib

or

pip install --upgrade matplotlib

 

2. 강제 재설치

conda install -c conda-forge matplotlib

 

3. 삭제 후 다시 깔기

pip uninstall matplotlib

이후

pip install matplotlib

설치

 

5. matplotlib가 설치된 곳에 가서  ("python3.6/site-packages/matplotlib/mpl-data/stylelib") _classic_test_patch.mplstyle 파일을 열어 text.kerning_factor:6 부분을 주석 처리하는 방법

 

 

https://stackoverflow.com/questions/61171307/jupyter-notebook-shows-error-message-for-matplotlib-bad-key-text-kerning-factor

 

jupyter notebook shows error message for matplotlib Bad key "text.kerning_factor"

import pandas as pd import numpy as np import matplotlib.pyplot as plt Bad key "text.kerning_factor" on line 4 in /home/samyak/anaconda3/lib/python3.7/site-packages/matplotlib/mpl-data/stylelib/

stackoverflow.com

 

공유하기

facebook twitter kakaoTalk kakaostory naver band
loading