【发布时间】:2020-10-16 15:38:52
【问题描述】:
我使用以下命令导入 pytesseract 模块,
sudo pip install -U pytesseract
但是当我将 pytesseract 模块导入到在 spyder 节目上编译的程序时 导入 pytesseract ImportError:没有名为 pytesseract 的模块
你能给出这个问题的解决方案吗
【问题讨论】:
标签: python import python-tesseract
我使用以下命令导入 pytesseract 模块,
sudo pip install -U pytesseract
但是当我将 pytesseract 模块导入到在 spyder 节目上编译的程序时 导入 pytesseract ImportError:没有名为 pytesseract 的模块
你能给出这个问题的解决方案吗
【问题讨论】:
标签: python import python-tesseract
如果您使用的是 anaconda,请尝试:
conda install -c auto pytesseract
【讨论】:
或者,如果不使用 anaconda,您可以尝试:
以管理员身份打开 cmd.exe
输入
python -m pip install --user pytesseract
【讨论】:
您可以尝试从这个链接 (https://pypi.org/project/pytesseract/) 下载本地文件并提取 tar.gz 并使用命令 python setup.py install
并确保您已将 Tesseract-ocr 安装到。
安装 pytesseract 时依赖很少 : 1. PIL 2. OLE 文件
【讨论】: