PIL全称Python Imaging Library,翻译过来就是Python图像处理库。

如果报了标题的错误,说明在程序涉及图片时少了这个库。

学习笔记(三) 解决Python3.X pycharm中报No module named 'PIL'

解决方法很简单:

打开命令行:pip install Pillow

之后打开pycharm,发现还是报错。

这说明还要做pycharm里配置一下:

路径:file→settings→project→project interpreter

学习笔记(三) 解决Python3.X pycharm中报No module named 'PIL'

学习笔记(三) 解决Python3.X pycharm中报No module named 'PIL'

然后重新运行程序,就会发现一切正常


相关文章:

  • 2022-12-23
  • 2021-05-01
  • 2021-09-25
  • 2021-09-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-06
  • 2022-12-23
  • 2022-12-23
  • 2021-05-17
  • 2021-12-27
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案