기억노트

ImportError: No module named PIL 해결 본문

Programming/VirtualBox + Ubuntu

ImportError: No module named PIL 해결

진바니 2020. 4. 25. 16:33

PIL 은 Python Imaging Library 의 약자이다.

Python 에서 PIL을 import 할 때 에러가 나는 경우가 있는데,

'ImportError: No module named PIL' 은

PIL 이 python 에 설치되어 있지 않아 발생하는 오류이다. 

그러므로 PIL 을 설치해주면 해결할 수 있다.

 

PIL 은 라이브러리 이름이 PIL 이 아니라서 

$ sudo pip install pillow image

위의 pillow 와 image 라이브러리를 설치해야한다.

Error message

 

Pillow 와 image 라이브러리 설치 완료

 

PIL 라이브러리 import 후 버전 확인