Zbar and error

Hi.

I want to install Zbar. I take settings -> Project [name] -> Python Interpreter, then hit + as a Install, search for Zbar, click "Install" and recive that error


ERROR: Command errored out with exit status 1:
command: 'e:\python\programy\teminarz 2 kivy\venv\scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Ja\\AppData\\Local\\Temp\\pip-ins
tall-es8874ok\\zbar_5e684b93299d49629505c8490e4b23c1\\setup.py'"'"'; __file__='"'"'C:\\Users\\Ja\\AppData\\Local\\Temp\\pip-install-es8874ok\\zbar_5e684b93299d49629505c8490e4b23c1\\setup.
py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r
\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Ja\AppData\Local\Temp\pip-record-bn9auavp\install-record.txt' --single-version-e
xternally-managed --compile --install-headers 'e:\python\programy\teminarz 2 kivy\venv\include\site\python3.9\zbar'
cwd: C:\Users\Ja\AppData\Local\Temp\pip-install-es8874ok\zbar_5e684b93299d49629505c8490e4b23c1\
Complete output (5 lines):
running install
running build
running build_ext
building 'zbar' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
----------------------------------------
ERROR: Command errored out with exit status 1: 'e:\python\programy\teminarz 2 kivy\venv\scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\
Ja\\AppData\\Local\\Temp\\pip-install-es8874ok\\zbar_5e684b93299d49629505c8490e4b23c1\\setup.py'"'"'; __file__='"'"'C:\\Users\\Ja\\AppData\\Local\\Temp\\pip-install-es8874ok\\zbar_5e684b9
3299d49629505c8490e4b23c1\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"'
);code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Ja\AppData\Local\Temp\pip-record-bn9auavp\insta
ll-record.txt' --single-version-externally-managed --compile --install-headers 'e:\python\programy\teminarz 2 kivy\venv\include\site\python3.9\zbar' Check the logs for full command output
.

How can i repair that?

Windows 10, PyCharm 2021.2.1 Community Edition

2 comments
Comment actions Permalink

Hi, 

As the error say, you need to install C++ Build Tools

If it still doesn't work, please see https://www.jetbrains.com/help/pycharm/package-installation-issues.html

0
Comment actions Permalink

I still have error with VS


error: command 'E:\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\
14.29.30133\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
0

Please sign in to leave a comment.