m1에서 matplotlib 설치안되는 문제

정재호·2021년 3월 25일

Pip install matplotlib fails because one of its dependencies is pillow and one of pillow’s dependency is libjpeg. The specific error is:

The headers or library files could not be found for jpeg,
a required dependency when compiling Pillow from source.

따라서 libjpeg를 설치해주면 정상적으로 matplotlib을 설치할 수 있다.

brew install libjpeg

출처: https://alexslobodnik.medium.com/apple-m1-matplotlib-python-and-jupyter-lab-551646b9a8cd

profile
스페셜한 제너럴리스트

0개의 댓글