【问题标题】:pytesseract import error on anacondaanaconda上的pytesseract导入错误
【发布时间】:2020-10-16 15:38:52
【问题描述】:

我使用以下命令导入 pytesseract 模块,

sudo pip install -U pytesseract

但是当我将 pytesseract 模块导入到在 spyder 节目上编译的程序时 导入 pytesseract ImportError:没有名为 pytesseract 的模块

你能给出这个问题的解决方案吗

【问题讨论】:

    标签: python import python-tesseract


    【解决方案1】:

    如果您使用的是 anaconda,请尝试:

    conda install -c auto pytesseract
    

    【讨论】:

      【解决方案2】:

      或者,如果不使用 anaconda,您可以尝试:

      以管理员身份打开 cmd.exe

      输入

      python -m pip install --user pytesseract
      

      【讨论】:

        【解决方案3】:

        您可以尝试从这个链接 (https://pypi.org/project/pytesseract/) 下载本地文件并提取 tar.gz 并使用命令 python setup.py install

        并确保您已将 Tesseract-ocr 安装到。

        安装 pytesseract 时依赖很少 : 1. PIL 2. OLE 文件

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 2016-08-11
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2016-06-22
          • 1970-01-01
          • 2021-10-28
          • 2019-05-02
          相关资源
          最近更新 更多