【问题标题】:Strange error: ImportError: No module named PIL奇怪的错误:ImportError: No module named PIL
【发布时间】:2022-06-18 15:45:03
【问题描述】:

当我运行 Python 时,我得到了这个错误:

Traceback (most recent call last):
  File "<console>", line 1, in <module>
ImportError: No module named PIL

我不明白问题可能是什么。

【问题讨论】:

    标签: python python-imaging-library importerror


    【解决方案1】:

    PIL 已弃用,您现在必须使用枕头。

    运行命令:

    pip install Pillow
    

    【讨论】:

      猜你喜欢
      • 2015-09-10
      • 2015-04-30
      • 2015-02-27
      • 1970-01-01
      • 2023-04-05
      • 2017-03-16
      • 2013-08-20
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多