鱼C论坛

 找回密码
 立即注册
查看: 1396|回复: 1

安装tesserocr出错

[复制链接]
发表于 2019-3-29 08:53:28 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能^_^

您需要 登录 才可以下载或查看,没有账号?立即注册

x
pip install tesserocr pillow
提示如下错误,请问怎么解决啊!!!

C:\Users\ZhanLF>pip install tesserocr pillow
Collecting tesserocr
  Using cached https://files.pythonhosted.org/packages/92/2d/05a7f8387e93c192919b508e4f4936f232bd3d2ca388b9130ae538a9f9ad/tesserocr-2.4.0.tar.gz
Requirement already satisfied: pillow in e:\anaconda3\lib\site-packages (5.3.0)
Building wheels for collected packages: tesserocr
  Running setup.py bdist_wheel for tesserocr ... error
  Complete output from command E:\Anaconda3\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\ZhanLF\\AppData\\Local\\Temp\\pip-install-bpnf0mwq\\tesserocr\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d C:\Users\ZhanLF\AppData\Local\Temp\pip-wheel-b86zuqvp --python-tag cp37:
  C:\Users\ZhanLF\AppData\Local\Temp\pip-install-bpnf0mwq\tesserocr\setup.py:134: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
    _LOGGER.warn('Failed to extract tesseract version from executable: {}'.format(e))
  Failed to extract tesseract version from executable: [WinError 2] 系统找不到指定的文件。
  Supporting tesseract v3.04.00
  Building with configs: {'libraries': ['tesseract', 'lept'], 'cython_compile_time_env': {'TESSERACT_VERSION': 50593792}}
  running bdist_wheel
  running build
  running build_ext
  building 'tesserocr' extension
  creating build
  creating build\temp.win-amd64-3.7
  creating build\temp.win-amd64-3.7\Release
  E:\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IE:\Anaconda3\include -IE:\Anaconda3\include "-IE:\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include" /EHsc /Tptesserocr.cpp /Fobuild\temp.win-amd64-3.7\Release\tesserocr.obj
  tesserocr.cpp
  e:\anaconda3\include\pyconfig.h(59): fatal error C1083: 无法打开包括文件: “io.h”: No such file or directory
  error: command 'E:\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2

  ----------------------------------------
  Failed building wheel for tesserocr
  Running setup.py clean for tesserocr
Failed to build tesserocr
Installing collected packages: tesserocr
  Running setup.py install for tesserocr ... error
    Complete output from command E:\Anaconda3\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\ZhanLF\\AppData\\Local\\Temp\\pip-install-bpnf0mwq\\tesserocr\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\ZhanLF\AppData\Local\Temp\pip-record-tk7kxj02\install-record.txt --single-version-externally-managed --compile:
    C:\Users\ZhanLF\AppData\Local\Temp\pip-install-bpnf0mwq\tesserocr\setup.py:134: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
      _LOGGER.warn('Failed to extract tesseract version from executable: {}'.format(e))
    Failed to extract tesseract version from executable: [WinError 2] 系统找不到指定的文件。
    Supporting tesseract v3.04.00
    Building with configs: {'libraries': ['tesseract', 'lept'], 'cython_compile_time_env': {'TESSERACT_VERSION': 50593792}}
    running install
    running build
    running build_ext
    building 'tesserocr' extension
    creating build
    creating build\temp.win-amd64-3.7
    creating build\temp.win-amd64-3.7\Release
    E:\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IE:\Anaconda3\include -IE:\Anaconda3\include "-IE:\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include" /EHsc /Tptesserocr.cpp /Fobuild\temp.win-amd64-3.7\Release\tesserocr.obj
    tesserocr.cpp
    e:\anaconda3\include\pyconfig.h(59): fatal error C1083: 无法打开包括文件: “io.h”: No such file or directory
    error: command 'E:\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2

    ----------------------------------------
Command "E:\Anaconda3\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\ZhanLF\\AppData\\Local\\Temp\\pip-install-bpnf0mwq\\tesserocr\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\ZhanLF\AppData\Local\Temp\pip-record-tk7kxj02\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\ZhanLF\AppData\Local\Temp\pip-install-bpnf0mwq\tesserocr\
小甲鱼最新课程 -> https://ilovefishc.com
回复

使用道具 举报

 楼主| 发表于 2019-3-29 14:42:11 | 显示全部楼层
安装之前,已经安装了tesseract
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2026-1-14 21:31

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表