Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
need help
#10
This is what I got, should have I opened pip with administrator privilage?

C:\Users\Admin>pip install tesseract-ocr
Collecting tesseract-ocr
Using cached tesseract-ocr-0.0.1.tar.gz (33 kB)
Requirement already satisfied: cython in c:\users\admin\appdata\local\programs\python\python39\lib\site-packages (from tesseract-ocr) (0.29.21)
Building wheels for collected packages: tesseract-ocr
Building wheel for tesseract-ocr (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\admin\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Admin\\AppData\\Local\\Temp\\pip-install-7z6kxlsq\\tesseract-ocr\\setup.py'"'"'; __file__='"'"'C:\\Users\\Admin\\AppData\\Local\\Temp\\pip-install-7z6kxlsq\\tesseract-ocr\\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\Admin\AppData\Local\Temp\pip-wheel-l1mcr21b'
cwd: C:\Users\Admin\AppData\Local\Temp\pip-install-7z6kxlsq\tesseract-ocr\
Complete output (14 lines):
running bdist_wheel
running build
running build_py
file tesseract_ocr.py (for module tesseract_ocr) not found
file tesseract_ocr.py (for module tesseract_ocr) not found
running build_ext
building 'tesseract_ocr' extension
creating build
creating build\temp.win-amd64-3.9
creating build\temp.win-amd64-3.9\Release
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29333\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\users\admin\appdata\local\programs\python\python39\include -Ic:\users\admin\appdata\local\programs\python\python39\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29333\include /EHsc /Tptesseract_ocr.cpp /Fobuild\temp.win-amd64-3.9\Release\tesseract_ocr.obj
tesseract_ocr.cpp
c:\users\admin\appdata\local\programs\python\python39\include\pyconfig.h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.28.29333\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
----------------------------------------
ERROR: Failed building wheel for tesseract-ocr
Running setup.py clean for tesseract-ocr
Failed to build tesseract-ocr
Installing collected packages: tesseract-ocr
Running setup.py install for tesseract-ocr ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\admin\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Admin\\AppData\\Local\\Temp\\pip-install-7z6kxlsq\\tesseract-ocr\\setup.py'"'"'; __file__='"'"'C:\\Users\\Admin\\AppData\\Local\\Temp\\pip-install-7z6kxlsq\\tesseract-ocr\\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\Admin\AppData\Local\Temp\pip-record-tz9b7mvh\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\admin\appdata\local\programs\python\python39\Include\tesseract-ocr'
cwd: C:\Users\Admin\AppData\Local\Temp\pip-install-7z6kxlsq\tesseract-ocr\
Complete output (14 lines):
running install
running build
running build_py
file tesseract_ocr.py (for module tesseract_ocr) not found
file tesseract_ocr.py (for module tesseract_ocr) not found
running build_ext
building 'tesseract_ocr' extension
creating build
creating build\temp.win-amd64-3.9
creating build\temp.win-amd64-3.9\Release
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29333\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\users\admin\appdata\local\programs\python\python39\include -Ic:\users\admin\appdata\local\programs\python\python39\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29333\include /EHsc /Tptesseract_ocr.cpp /Fobuild\temp.win-amd64-3.9\Release\tesseract_ocr.obj
tesseract_ocr.cpp
c:\users\admin\appdata\local\programs\python\python39\include\pyconfig.h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.28.29333\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\admin\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Admin\\AppData\\Local\\Temp\\pip-install-7z6kxlsq\\tesseract-ocr\\setup.py'"'"'; __file__='"'"'C:\\Users\\Admin\\AppData\\Local\\Temp\\pip-install-7z6kxlsq\\tesseract-ocr\\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\Admin\AppData\Local\Temp\pip-record-tz9b7mvh\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\admin\appdata\local\programs\python\python39\Include\tesseract-ocr' Check the logs for full command output.

C:\Users\Admin>
C:\Users\Admin>
Reply


Messages In This Thread
need help - by Yui_18 - Nov-22-2020, 11:30 AM
RE: need help - by DT2000 - Nov-22-2020, 11:54 AM
RE: need help - by snippsat - Nov-22-2020, 12:02 PM
RE: need help - by Yui_18 - Nov-22-2020, 12:53 PM
RE: need help - by ndc85430 - Nov-22-2020, 01:05 PM
RE: need help - by snippsat - Nov-22-2020, 01:19 PM
RE: need help - by Yui_18 - Nov-22-2020, 01:32 PM
RE: need help - by snippsat - Nov-22-2020, 02:13 PM
RE: need help - by Yui_18 - Nov-22-2020, 02:59 PM
RE: need help - by Yui_18 - Nov-22-2020, 04:43 PM
RE: need help - by snippsat - Nov-22-2020, 05:13 PM
RE: need help - by Yui_18 - Nov-22-2020, 05:26 PM
RE: need help - by snippsat - Nov-22-2020, 05:34 PM
RE: need help - by Yui_18 - Nov-22-2020, 05:44 PM
RE: need help - by Yui_18 - Nov-22-2020, 05:47 PM
RE: need help - by Yui_18 - Nov-22-2020, 05:55 PM
RE: need help - by snippsat - Nov-22-2020, 09:55 PM
RE: need help - by Yui_18 - Nov-23-2020, 08:26 AM
RE: need help - by snippsat - Nov-23-2020, 10:26 AM
RE: need help - by Yui_18 - Nov-23-2020, 10:44 AM
RE: need help - by snippsat - Nov-23-2020, 11:31 AM
RE: need help - by Yui_18 - Nov-23-2020, 02:29 PM
RE: need help - by snippsat - Nov-23-2020, 07:26 PM
RE: need help - by Yui_18 - Nov-24-2020, 05:31 AM
RE: need help - by snippsat - Nov-24-2020, 09:55 AM
RE: need help - by Yui_18 - Nov-24-2020, 11:27 AM
RE: need help - by snippsat - Nov-25-2020, 12:26 AM
RE: need help - by Yui_18 - Dec-07-2020, 12:00 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020