最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

python imaging library - PIL disappeared after installing img2pdf - Stack Overflow

programmeradmin2浏览0评论

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. (((

发布评论

评论列表(0)

  1. 暂无评论