pillow 모듈이 없다는 에러입니다.
그리고 설치 후 입니다.
Python 3.8.8 (tags/v3.8.8:024d805, Feb 19 2021, 13:18:16) [MSC v.1928 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license()" for more information.
>>> from PIL import Image
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
from PIL import Image
ModuleNotFoundError: No module named 'PIL'
>>> from PIL import Image
>>>
설치 방법입니다.
저는 항상 scripts 폴더에서 설치합니다.
pip upgrade는 필요 할 때만 합니다.
먼저 pillow 설치해보고, pip 업그레이드가 필요하다는 메시지가 있을 때 합니다.
C:\python388\Scripts>Python3 -m ipi install --upgrade pip
Python
C:\python388\Scripts>Python -m ipi install --upgrade pip
C:\python388\python.exe: No module named ipi
C:\python388\Scripts>Python -m pip install --upgrade pip
Requirement already satisfied: pip in c:\python388\lib\site-packages (21.0.1)
C:\python388\Scripts>Python -m pip install --upgrade pillow
Collecting pillow
Downloading Pillow-8.1.1-cp38-cp38-win_amd64.whl (2.2 MB)
|████████████████████████████████| 2.2 MB 1.6 MB/s
Installing collected packages: pillow
Successfully installed pillow-8.1.1
C:\python388\Scripts>
Python 3.8.8 (tags/v3.8.8:024d805, Feb 19 2021, 13:18:16) [MSC v.1928 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license()" for more information.
>>> from PIL import Image
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
from PIL import Image
ModuleNotFoundError: No module named 'PIL'
>>> from PIL import Image
>>>
'python' 카테고리의 다른 글
아나콘다 (0) | 2024.01.18 |
---|---|
numpy (0) | 2022.08.09 |
P0010. partial 함수 (0) | 2021.03.02 |
P0009. 처음 원소 제거 pop() (0) | 2021.02.26 |
P0008. 집합 원소 제거 discard() (0) | 2021.02.26 |