|
|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
pip install tesserocr pillow
提示如下错误,请问怎么解决啊!!!
C:\Users\ZhanLF>pip install tesserocr pillow
Collecting tesserocr
Using cached https://files.pythonhosted.org/packages/92/2d/05a7f8387e93c192919b508e4f4936f232bd3d2ca388b9130ae538a9f9ad/tesserocr-2.4.0.tar.gz
Requirement already satisfied: pillow in e:\anaconda3\lib\site-packages (5.3.0)
Building wheels for collected packages: tesserocr
Running setup.py bdist_wheel for tesserocr ... error
Complete output from command E:\Anaconda3\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\ZhanLF\\AppData\\Local\\Temp\\pip-install-bpnf0mwq\\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\ZhanLF\AppData\Local\Temp\pip-wheel-b86zuqvp --python-tag cp37:
C:\Users\ZhanLF\AppData\Local\Temp\pip-install-bpnf0mwq\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}}
running bdist_wheel
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
E:\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IE:\Anaconda3\include -IE:\Anaconda3\include "-IE:\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include" /EHsc /Tptesserocr.cpp /Fobuild\temp.win-amd64-3.7\Release\tesserocr.obj
tesserocr.cpp
e:\anaconda3\include\pyconfig.h(59): fatal error C1083: 无法打开包括文件: “io.h”: No such file or directory
error: command 'E:\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
----------------------------------------
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
Complete output from command E:\Anaconda3\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\ZhanLF\\AppData\\Local\\Temp\\pip-install-bpnf0mwq\\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\ZhanLF\AppData\Local\Temp\pip-record-tk7kxj02\install-record.txt --single-version-externally-managed --compile:
C:\Users\ZhanLF\AppData\Local\Temp\pip-install-bpnf0mwq\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}}
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
E:\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IE:\Anaconda3\include -IE:\Anaconda3\include "-IE:\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include" /EHsc /Tptesserocr.cpp /Fobuild\temp.win-amd64-3.7\Release\tesserocr.obj
tesserocr.cpp
e:\anaconda3\include\pyconfig.h(59): fatal error C1083: 无法打开包括文件: “io.h”: No such file or directory
error: command 'E:\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
----------------------------------------
Command "E:\Anaconda3\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\ZhanLF\\AppData\\Local\\Temp\\pip-install-bpnf0mwq\\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\ZhanLF\AppData\Local\Temp\pip-record-tk7kxj02\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\ZhanLF\AppData\Local\Temp\pip-install-bpnf0mwq\tesserocr\ |
|