PyCharm安装PIL模块

当前,采用的PyCharm版本为2019.3.2。
Python笔记-PyCharm安装PIL模块
初始尝试安装PIL(File->Settings->project interpreter->+)提示失败(Could not find a version that satisfies the requirement PIL (from versions: )No matching distribution found for PIL)
主要原因在于版本问题,PIL针对Python 2.x,而当前使用的为Python 3.7,所以无法安装,转而安装Pillow即可,可直接安装,也可pip。
Python笔记-PyCharm安装PIL模块

###总结:

  1. 需要安装**Pillow**,安装该第三方模板后,引入为from PIL import Image
  2. 第三方库查询: pypi.python.org

相关文章:

  • 2021-10-19
  • 2021-12-02
  • 2018-07-24
  • 2021-10-10
  • 2021-09-30
  • 2021-09-30
  • 2021-11-04
  • 2019-08-09
猜你喜欢
  • 2018-04-13
  • 2018-03-29
  • 2021-11-03
  • 2021-09-27
  • 2021-11-03
  • 2021-10-19
  • 2021-10-19
  • 2021-10-19
相关资源
相似解决方案