加入收藏 | 设为首页 | 会员中心 | 我要投稿 西双版纳站长网 (https://www.0691zz.com.cn/)- 数据计算、IT业界、服务器、教程、云日志!
当前位置: 首页 > 服务器 > 系统 > 正文

win10下pip3安装tesserocr时报错

发布时间:2021-02-28 15:51:20 所属栏目:系统 来源:网络整理
导读:使用pip3在线安装tesserocr时报错,刚开始报错内容是提示未安装vs2014,安装完以后报错内容如下 ERROR: Command errored out with exit status 1: command: ‘c:usersadministratorappdatalocalprogramspythonpython37python.exe‘ -u -c ‘import s

使用pip3在线安装tesserocr时报错,刚开始报错内容是提示未安装vs2014,安装完以后报错内容如下

ERROR: Command errored out with exit status 1:
     command: ‘c:usersadministratorappdatalocalprogramspythonpython37python.exe‘ -u -c ‘import sys,setuptools,tokenize; sys.argv[0] = ‘"‘"‘C:UsersADMINI~1AppDataLocalTemppip-install-v4ys64lrtesserocrsetup.py‘"‘"‘; __file__=‘"‘"‘C:UsersADMINI~1AppDataLocalTemppip-install-v4ys64lrtesserocrsetup.py‘"‘"‘;f=getattr(tokenize,‘"‘"‘open‘"‘"‘,open)(__file__);code=f.read().replace(‘"‘"‘rn‘"‘"‘,‘"‘"‘n‘"‘"‘);f.close();exec(compile(code,__file__,‘"‘"‘exec‘"‘"‘))‘ install --record ‘C:UsersADMINI~1AppDataLocalTemppip-record-znybe2k0install-record.txt‘ --single-version-externally-managed --compile
         cwd: C:UsersADMINI~1AppDataLocalTemppip-install-v4ys64lrtesserocr    Complete output (18 lines):
    C:UsersADMINI~1AppDataLocalTemppip-install-v4ys64lrtesserocrsetup.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}}
    c:usersadministratorappdatalocalprogramspythonpython37libdistutilsdist.py:274: UserWarning: Unknown distribution option: ‘long_description_content_type‘
      warnings.warn(msg)
    running install
    running build
    running build_ext
    building ‘tesserocr‘ extension
    creating build
    creating buildtemp.win-amd64-3.7
    creating buildtemp.win-amd64-3.7Release
    C:Program Files (x86)Microsoft Visual Studio 14.0VCBINx86_amd64cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:usersadministratorappdatalocalprogramspythonpython37include -Ic:usersadministratorappdatalocalprogramspythonpython37include "-IC:Program Files (x86)Microsoft Visual Studio 14.0VCINCLUDE" "-IC:Program Files (x86)Windows Kits10include10.0.10240.0ucrt" /EHsc /Tptesserocr.cpp /Fobuildtemp.win-amd64-3.7Releasetesserocr.obj
    tesserocr.cpp
    c:usersadministratorappdatalocalprogramspythonpython37includepyconfig.h(215): fatal error C1083: Cannot open include file: ‘basetsd.h‘: No such file or directory
    error: command ‘C:Program Files (x86)Microsoft Visual Studio 14.0VCBINx86_amd64cl.exe‘ failed with exit status 2
    ----------------------------------------
ERROR: Command errored out with exit status 1: ‘c:usersadministratorappdatalocalprogramspythonpython37python.exe‘ -u -c ‘import sys,‘"‘"‘exec‘"‘"‘))‘ install --record ‘C:UsersADMINI~1AppDataLocalTemppip-record-znybe2k0install-record.txt‘ --single-version-externally-managed --compile Check the logs for full command output.

  目前没找到其他比较好的解决办法,只能下载离线包后手动pip3安装,

下载地址:https://github.com/simonflueckiger/tesserocr-windows_build/releases

(编辑:西双版纳站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    热点阅读