源码之家

  • 首页
  • 文章
  • 问答
  • 下载
您的位置: 首页  >  文章  >  Python3.x 中安装不了PIL

Python3.x 中安装不了PIL

分类: 文章 • 2024-03-23 15:10:46

PIL只能使用在Python2.x版本中,还没有支持Python3.x的版本

Python3.x 中安装不了PIL
由于PIL不支持Python3.x, 所以就有了pillow库,可以通过

pip3 install pillow

安装好pillow库之后,就可以跟安装好PIL库一样,导入PIL

from PIL import Image

测试代码:

import pytesseract
from PIL import Image

image = Image.open("./pip_test.png")
text = pytesseract.image_to_string(image)
print(text)

相关推荐

  • VMwear安装Centos7过程:网络和主机步骤中以太网开启不了
  • Linux安装activeMQ的流程中的坑(外面访问不了,已经解决)
  • 服务器中安装visualsvn server,访问不了解决方案
  • python3 安装不了PIL
  • python中PIL安装教程
  • Python3.x 中安装不了PIL
  • 如何在python3.X(IDLE)中安装jieba库(第三方库)
  • xp打印机驱动安装不了_解决Windows XP安装过程中的“安装程序找不到任何硬盘驱动器”...
  • Rational Rose 2007安装步骤详解及解决安装过程中的一些问题(解决虚拟光驱加载不了bin文件问题)
  • 在没有sudo的虚拟环境中安装Pillow/PIL的问题
  • windows下python2安装crypto
  • Python35 安装PIL解决方法
    网站免责声明 网站地图 最新文章 用户隐私 版权申明
本站所有数据收集于网络,如果侵犯到您的权益,请联系网站进行下架处理。   

Copyright © 2018-2021   Powered By 源码之家    备案号:   粤ICP备20058927号