Не могу установить zbarlight - PullRequest
0 голосов
/ 03 июля 2018

Со вчерашнего дня я пытаюсь установить zbarlight (https://github.com/Polyconseil/zbarlight) на мой компьютер с Windows 10. В репозитории есть несколько инструкций по установке на Windows, но они мне не совсем понятны. Вот стек, когда я пытаюсь установить его:

C:\......>pip install zbarlight
Collecting zbarlight
  Using cached https://files.pythonhosted.org/packages/2b/3d/2111e8324d89d436bd3e361acfde556b71ef9ea6aedfa3a65c239cf4c287/zbarlight-2.1.tar.gz
Requirement already satisfied: Pillow in c:\program files (x86)\python37-32\lib\site-packages (from zbarlight) (5.2.0)
Installing collected packages: zbarlight
  Running setup.py install for zbarlight ... error
    Complete output from command "c:\program files (x86)\python37-32\python.exe" -u -c "import setuptools, tokenize;__file__='C:\\Users\\TestPC\\AppData\\Local\\Temp\\pip-install-2lgytakr\\zbarlight\\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\TestPC\AppData\Local\Temp\pip-record-80xqch7d\install-record.txt --single-version-externally-managed --compile:

    running install
    running build
    running build_py
    creating build
    creating build\lib.win32-3.7
    creating build\lib.win32-3.7\zbarlight
    copying src\zbarlight\__init__.py -> build\lib.win32-3.7\zbarlight
    running egg_info
    writing src\zbarlight.egg-info\PKG-INFO
    writing dependency_links to src\zbarlight.egg-info\dependency_links.txt
    writing requirements to src\zbarlight.egg-info\requires.txt
    writing top-level names to src\zbarlight.egg-info\top_level.txt
    reading manifest file 'src\zbarlight.egg-info\SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    no previously-included directories found matching 'docs'
    no previously-included directories found matching 'tests'
    warning: no previously-included files matching '*.py[cod]' found anywhere in distribution
    warning: no previously-included files matching '__pycache__' found anywhere in distribution
    warning: no previously-included files matching '*.so' found anywhere in distribution
    warning: no previously-included files found matching 'Makefile'
    warning: no previously-included files found matching 'requirements-dev.txt'
    warning: no previously-included files found matching 'tox.ini'
    warning: no previously-included files found matching 'run.py'
    writing manifest file 'src\zbarlight.egg-info\SOURCES.txt'
    copying src\zbarlight\_zbarlight.c -> build\lib.win32-3.7\zbarlight
    running build_ext
    building 'zbarlight._zbarlight' extension
    creating build\temp.win32-3.7
    creating build\temp.win32-3.7\Release
    creating build\temp.win32-3.7\Release\src
    creating build\temp.win32-3.7\Release\src\zbarlight
    C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD "-Ic:\program files (x86)\python37-32\include" "-Ic:\program files (x86)\python37-32\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\cppwinrt" /Tcsrc/zbarlight/_zbarlight.c /Fobuild\temp.win32-3.7\Release\src/zbarlight/_zbarlight.obj -std=c99
    cl : Command line warning D9002 : ignoring unknown option '-std=c99'
    _zbarlight.c
    src/zbarlight/_zbarlight.c(3): fatal error C1083: Cannot open include file: 'zbar.h': No such file or directory
    error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.14.26428\\bin\\HostX86\\x86\\cl.exe' failed with exit status 2

    ----------------------------------------
Command ""c:\program files (x86)\python37-32\python.exe" -u -c "import setuptools, tokenize;__file__='C:\\Users\\TestPC\\AppData\\Local\\Temp\\pip-install-2lgytakr\\zbarlight\\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\TestPC\AppData\Local\Temp\pip-record-80xqch7d\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\TestPC\AppData\Local\Temp\pip-install-2lgytakr\zbarlight\

Любая помощь будет принята с благодарностью!

...