win10下pip3安装tesserocr时报错

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

ERROR: Command errored out with exit status 1:
     command: ‘c:\users\administrator\appdata\local\programs\python\python37\python.exe‘ -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"‘"‘C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\pip-install-v4ys64lr\\tesserocr\\setup.py‘"‘"‘; __file__=‘"‘"‘C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\pip-install-v4ys64lr\\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\ADMINI~1\AppData\Local\Temp\pip-record-znybe2k0\install-record.txt‘ --single-version-externally-managed --compile
         cwd: C:\Users\ADMINI~1\AppData\Local\Temp\pip-install-v4ys64lr\tesserocr    Complete output (18 lines):
    C:\Users\ADMINI~1\AppData\Local\Temp\pip-install-v4ys64lr\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}}
    c:\users\administrator\appdata\local\programs\python\python37\lib\distutils\dist.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 build\temp.win-amd64-3.7
    creating build\temp.win-amd64-3.7\Release
    C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\users\administrator\appdata\local\programs\python\python37\include -Ic:\users\administrator\appdata\local\programs\python\python37\include "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" /EHsc /Tptesserocr.cpp /Fobuild\temp.win-amd64-3.7\Release\tesserocr.obj
    tesserocr.cpp
    c:\users\administrator\appdata\local\programs\python\python37\include\pyconfig.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.0\\VC\\BIN\\x86_amd64\\cl.exe‘ failed with exit status 2
    ----------------------------------------
ERROR: Command errored out with exit status 1: ‘c:\users\administrator\appdata\local\programs\python\python37\python.exe‘ -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"‘"‘C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\pip-install-v4ys64lr\\tesserocr\\setup.py‘"‘"‘; __file__=‘"‘"‘C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\pip-install-v4ys64lr\\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\ADMINI~1\AppData\Local\Temp\pip-record-znybe2k0\install-record.txt‘ --single-version-externally-managed --compile Check the logs for full command output.

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

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

原文地址:https://www.cnblogs.com/malefeng/p/11371287.html

时间: 2024-10-29 20:44:45

win10下pip3安装tesserocr时报错的相关文章

2个问题,解决tomcat启动一闪而过和运行tomcat/bin目录下的startup.bat时报错(the CATALINA_HOME environment variable is not defined correctly)

1.除手动使用开始菜单自启动或者程序启动TOMCAT时TOMCAT一闪而过,这时候是发生了错误,这时候我们打开BIN目录下的“startup.bat”文件,编辑,在结尾添加pause命名,这样在CMD下执行startup.bat时就会出错停止,这时候我们就知道是什么错误了. 2.运行tomcat/bin目录下的startup.bat时报错:the CATALINA_HOME environment variable is not defined correctly 碰到这个问题时的第一反应是添加

pip3安装Crypto报错ModuleNotFoundError: No module named 'Crypto'

问题: pip3 install Crypto后 仍报错 ModuleNotFoundError: No module named 'Crypto' 解决办法: 1.进入存放Crypto的目录看下他在不在 cd /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages ls 2.发现没有Crypto,只有crypto ??‍♀? 直接重命名文件改为Crypto mv crypto Crypto 思考

Ubuntu pip3安装uwsgi报错

笔者在ubuntu16.04使用pip3安装uwsgi时报错了,报错信息如下 [email protected]:~$ sudo pip3 ×××tall uwsgi The directory '/home/leslie/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions an

安装cx_Oracle时报错:error: command 'gcc' failed with exit status 1

1.安装cx_Oracle 1)下载cx_Oracle,https://pypi.python.org/pypi 2)解压压缩包 3)执行python setup.py install 执行后报错:error: command 'gcc' failed with exit status 1 排查: 1)检查是否安装oracle客户端软件 2)查看当前环境变量中是否配置oracle的相关变量,如echo $ORACLE_HOME 3)如果没有配置需要将oracle环境变量配置到当前用户.bash_

三星笔记本安装系统时报错:image failed to verify with * access denied* press any key to continue.

安装系统从光盘启动报错: 出现黑屏,并且有一个提示框image failed to verify with *access denied*press any key to continue 原因:三星笔记本对系统有降级保护,在将win8改装为win7是,需要设置bios. 1.开机按F2 进入bios,找到Boot-->secure boot-->改为:disabled---->OS Mode Selection改为:CSM OS. 2.在 advanced-->fast bios

CentOS6.4安装readline时报错:/usr/bin/ld : cannot find -lncurses

解决方法: 安装ncurses-devel,输入命令: #yum install ncurses-devel ###安装完成后重新安装readline(#pip install readline)即可### 参考资料: 1.http://bbs.chinaunix.net/thread-2262638-1-1.html CentOS6.4安装readline时报错:/usr/bin/ld : cannot find -lncurses,布布扣,bubuko.com

CentOS下编译CPP文件时报错[undefined reference to `__gxx_personality_v0' collect2: ld]的解决办法

在CentOS环境下编译CPP时报出 undefined reference to `__gxx_personality_v0' collect2: ld 以上错误,调查了一下,加上参数[-lstdc++]就可解决 例: gcc -lstdc++ a.cpp 参考自http://mlq.blog78.fc2.com/?mode=m&no=14 CentOS下编译CPP文件时报错[undefined reference to `__gxx_personality_v0' collect2: ld]

Ubuntu 16.04安装QtCharts时报错:'qtConfig' is not a recognized test function.

错误: 'qtConfig' is not a recognized test function. 解决方法: 其实5.9分支的版本有问题,转成5.7分支即可. git clone https://github.com/qtproject/qtcharts.git cd qtcharts git checkout 5.7 qmake make sudo make install 参考: http://php.wekeepcoding.com/article/10792742/Cross-comp

安装tcpreplay时报错:configure: error: libdnet not found

安装tcpreplay时报错configure: error: libdnet not found 解决方法: 下载包libdnet-1.8.tar.gz并安装,依次执行: ./configure make make install 验证问题解决. 下载地址:http://download.chinaunix.net/download/0006000/5777.shtml