【问题标题】:Failed to load module pytesseract无法加载模块 pytesseract
【发布时间】:2019-09-25 05:36:17
【问题描述】:

我正在尝试从图像中捕获文本文件,我指的是这个链接https://www.simplifiedpython.net/how-to-extract-text-from-image-in-python/

到目前为止,我已经使用此命令完成了 pytesseract 和 Image 库的安装:

pip install Image
pip install pytesseract

已经完成下载并安装 PIL-1.1.7.win32-py2.7.exe

我现在尝试在我的脚本上运行它,但仍然出现错误:

import pytesseract
try:
    from PIL import Image
except ImportError:
    import Image

这是我的错误:

ImportError: 
Importing the multiarray numpy extension module failed.  Most
likely you are trying to import a failed build of numpy.
If you're working with a numpy git repo, try `git clean -xdf` (removes all
files not under version control).  Otherwise reinstall numpy.

Original error was: DLL load failed: %1 is not a valid Win32 application.

任何人都知道我现在是否缺少任何先决条件。 TIA

【问题讨论】:

    标签: python-2.7 python-tesseract


    【解决方案1】:

    我只是重新安装了 numpy 并且错误得到了解决。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-03-08
      • 1970-01-01
      • 2021-01-11
      • 2015-02-09
      • 1970-01-01
      • 2016-10-09
      • 2012-09-07
      • 2012-10-10
      相关资源
      最近更新 更多