admin管理员组

文章数量:1421549

I installed img2pdf today. Now from PIL import Image fails. I tried to uninstall / reinstall Pillow, but it does not help.

Here's some details:

vlad@VKMB4:~/tmp$ python -V
Python 3.13.1
vlad@VKMB4:~/tmp$ python -c 'from PIL import Image'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
    from PIL import Image
ModuleNotFoundError: No module named 'PIL'
vlad@VKMB4:~/tmp$ pip install Pillow 
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: Pillow in /Users/vlad/Library/Python/3.9/lib/python/site-packages (11.1.0)
vlad@VKMB4:~/tmp$ 

Any suggestions greatly appreciated. (((

本文标签: python imaging libraryPIL disappeared after installing img2pdfStack Overflow