Closed redstoneleo closed 5 years ago
On Win7 32bit
C:\Users\i>pip3 install --upgrade tesserocr Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Collecting tesserocr Using cached https://pypi.tuna.tsinghua.edu.cn/packages/97/14/2297039bd74baf2c e970549d4fec383fb6e435d0a48f79813f195834937f/tesserocr-2.4.1.tar.gz Installing collected packages: tesserocr Found existing installation: tesserocr 2.4.0 Uninstalling tesserocr-2.4.0: Successfully uninstalled tesserocr-2.4.0 Running setup.py install for tesserocr ... error Complete output from command c:\users\i\appdata\local\programs\python\python 36-32\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Public\ \Documents\\iSkysoft\\CreatorTemp\\pip-install-jbdv5ade\\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\Public\ Documents\iSkysoft\CreatorTemp\pip-record-kbtq9hf2\install-record.txt --single-v ersion-externally-managed --compile: 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\i\appdata\local\programs\python\python36-32\lib\distutils\dist.py:2 61: 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.win32-3.6 creating build\temp.win32-3.6\Release C:\Program Files\Microsoft Visual Studio 14.0\VC\BIN\cl.exe /c /nologo /Ox / W3 /GL /DNDEBUG /MD -Ic:\users\i\appdata\local\programs\python\python36-32\inclu de -Ic:\users\i\appdata\local\programs\python\python36-32\include "-IC:\Program Files\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files\Windows Kits\ 10\include\10.0.10240.0\ucrt" "-IC:\Program Files\Windows Kits\8.1\include\share d" "-IC:\Program Files\Windows Kits\8.1\include\um" "-IC:\Program Files\Windows Kits\8.1\include\winrt" /EHsc /Tptesserocr.cpp /Fobuild\temp.win32-3.6\Release\t esserocr.obj tesserocr.cpp tesserocr.cpp(629): fatal error C1083: Cannot open include file: 'leptonica/ allheaders.h': No such file or directory error: command 'C:\\Program Files\\Microsoft Visual Studio 14.0\\VC\\BIN\\cl .exe' failed with exit status 2 ----------------------------------------
You can't build tesserocr on Windows using pip. Check the README for Windows installation options.
On Win7 32bit