728x90
ImportError: cannot import name 'PILLOW_VERSION' from 'PIL' (/Users/miniforge3/envs/vit/lib/python3.11/site-packages/PIL/__init__.py)
from PIL import __version__
print(__version__)
# version 9.2.0
Solution 1. ๊ตฌ๋ฒ์ ์ผ๋ก ๋ค์ ์ค์น (Pillow Version < 7)
- pip install pillow == 6.22
- ๋ค๋ฅธ ํจํค์ง์ ์ถฉ๋์ด ์์ ์ ์์ด ๋น์ถ์ฒ
Solution 2. Pillow Version ์ ๋ ฅ
import PIL
from PIL import __version__
print(__version__)
PIL.PILLOW_VERSION = __version__
๋ฐ์ํ
'๐พ Deep Learning' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
ViT(Vision in Transformer) Review (0) | 2022.12.19 |
---|---|
Tensor ๊ฐ์ง๊ณ ๋๊ธฐ [Einsum + einops] (0) | 2022.12.17 |
[Model Train Error] ๋ชจ๋ธ ํ์ต ์ ๋ฌดํ ๋ฃจํ /Unknown batch (0) | 2022.05.25 |
[Kaggle ImageClassification] Image Training Trick (0) | 2022.05.24 |
[Adamax ์ฌ์ฉ์ Error] ValueError: Could not interpret optimizer identifier: <keras.optimizer_v2.adam.Adam (0) | 2022.05.22 |