tessterocr安装问题
tesseract 安装好了但是 tesserocr 使用pip安装失败,百度的方法都试了一遍还是不可以,现在是Windows10 系统,python3.8.2求助大佬 用管理员身份运行
更新pip
python -m pip install --upgrade pip
或者用镜像
python -m pip install pygame -i https://pypi.tuna.tsinghua.edu.cn/simple 3.8.2太新了,可能不支持,降低下版本试试 我这个基本上是万能解法,大部分的都能用这个解决,还有就是把pip加到环境变量里了吗? 老八秘制 发表于 2020-4-29 10:52
3.8.2太新了,可能不支持,降低下版本试试
他是安装失败诶
你确定?
我感觉是pip 什么错误,拿上来看一眼 weiter 发表于 2020-4-29 10:50
用管理员身份运行
更新pip
谢谢大佬,这个都试过,但是不行 Frozen83 发表于 2020-4-29 18:12
谢谢大佬,这个都试过,但是不行
emmm……那我也没辙了 Frozen83 发表于 2020-4-29 18:12
谢谢大佬,这个都试过,但是不行
等下,那个镜像的pygame部分忘记跟你说替换掉了……那个要换成你需要的模块 ERROR: Command errored out with exit status 1:
command: 'c:\users\frozen\appdata\local\programs\python\python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv = '"'"'C:\\Users\\Frozen\\AppData\\Local\\Temp\\pip-install-ev1n5t04\\tesserocr\\setup.py'"'"'; __file__='"'"'C:\\Users\\Frozen\\AppData\\Local\\Temp\\pip-install-ev1n5t04\\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\Frozen\AppData\Local\Temp\pip-wheel-ezsxb4q6'
cwd: C:\Users\Frozen\AppData\Local\Temp\pip-install-ev1n5t04\tesserocr\
Complete output (12 lines):
C:\Users\Frozen\AppData\Local\Temp\pip-install-ev1n5t04\tesserocr\setup.py:72: SyntaxWarning: "is not" with a literal. Did you mean "!="?
if subversion is not None and subversion is not "":
C:\Users\Frozen\AppData\Local\Temp\pip-install-ev1n5t04\tesserocr\setup.py:135: 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: 系统找不到指定的文件。
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
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
----------------------------------------
ERROR: 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
ERROR: Command errored out with exit status 1:
command: 'c:\users\frozen\appdata\local\programs\python\python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv = '"'"'C:\\Users\\Frozen\\AppData\\Local\\Temp\\pip-install-ev1n5t04\\tesserocr\\setup.py'"'"'; __file__='"'"'C:\\Users\\Frozen\\AppData\\Local\\Temp\\pip-install-ev1n5t04\\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\Frozen\AppData\Local\Temp\pip-record-qp6rm0zr\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\frozen\appdata\local\programs\python\python38\Include\tesserocr'
cwd: C:\Users\Frozen\AppData\Local\Temp\pip-install-ev1n5t04\tesserocr\
Complete output (12 lines):
C:\Users\Frozen\AppData\Local\Temp\pip-install-ev1n5t04\tesserocr\setup.py:72: SyntaxWarning: "is not" with a literal. Did you mean "!="?
if subversion is not None and subversion is not "":
C:\Users\Frozen\AppData\Local\Temp\pip-install-ev1n5t04\tesserocr\setup.py:135: 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: 系统找不到指定的文件。
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
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\frozen\appdata\local\programs\python\python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv = '"'"'C:\\Users\\Frozen\\AppData\\Local\\Temp\\pip-install-ev1n5t04\\tesserocr\\setup.py'"'"'; __file__='"'"'C:\\Users\\Frozen\\AppData\\Local\\Temp\\pip-install-ev1n5t04\\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\Frozen\AppData\Local\Temp\pip-record-qp6rm0zr\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\frozen\appdata\local\programs\python\python38\Include\tesserocr' Check the logs for full command output.
错误信息有点长
页:
[1]