pip install Pillow 에러해결
Language/Python

pip install Pillow 에러해결

뉴비뉴 2019. 12. 22.

최근에 데스크탑과 노트북에 환경을 세팅하는데 Pillow 를 설치하는데 계속 위와 같은 오류가 발생했습니다.

해결을 위해서 구글링해보니 아래와 같은 정보가 있었고 저에게는 도움이 되지 않았습니다.

https://github.com/python-pillow/Pillow/issues/4158

 

"pip install pillow" failing with python 3.8 and pillow 6.2.1 · Issue #4158 · python-pillow/Pillow

I noticed that support for 3.8 has been added to pillow 6.2.1, but when I try to pip install it, it's trying to build from source and errors because no zlib. Am I just being too impatient and b...

github.com

Python 3.8.0, Pillow 6.2.1

해결 방법은 pip 버전이 최신버전인지 확인하기 위해 업데이트를 하였는데 아래와 같은 오류가 발생하였고,

 

File "C:\Users\smil2\OneDrive\문서\theother\venv\lib\site-packages\pip-19.0.3-py3.8.egg\pip\_vendor\distlib\scripts.py", line 384, in _get_launcher
    result = finder(distlib_package).find(name).bytes
AttributeError: 'NoneType' object has no attribute 'bytes'

 

https://hg4535.tistory.com/entry/pip-%EC%97%85%EB%8D%B0%EC%9D%B4%ED%8A%B8-%EC%97%90%EB%9F%AC-%EC%9E%AC%EC%84%A4%EC%B9%98-NoneType-object-has-no-attribute-bytes

 

pip 업데이트 에러 ( 재설치) 'NoneType' object has no attribute 'bytes'

(venv) D:\study\deeplearning\untitled>pip3 install --upgrade pip ERROR: To modify pip, please run the following command: D:\study\deeplearning\untitled\venv\Scripts\python.exe -m pip install --upg..

hg4535.tistory.com

위 블로그의 해결방법으로 해결하니 Pillow 가 제대로 설치되었습니다.

pip 버전 문제였던 걸로 확인되었습니다.

'Language > Python' 카테고리의 다른 글

Python - Dict student['Key'] vs student.get('Key')  (0) 2020.01.11
Github .gitignore 언어별 기본 값  (0) 2019.12.31
HTTP Method ( GET, POST )  (0) 2019.12.12
f-string: expressions nested too deeply 해결법  (2) 2019.11.28
AWS, Docker  (0) 2019.11.22

댓글

💲 추천 글