I\'m trying to install zbar
on my Windows x64 machine:
pip install zbar
And this is what I got:
Collecting zba
You are trying to install zbar
package with pip
. When doing so, pip
downloads the source and tries to compile the C/C++ source code of this project.
To do such a thing, you need a C/C++ compiler and having all dependencies. It may be complicated to have pip
compiles this package.
The other solution is to download a binary wheel that embeds all binaries. zbar
developers propose to download a binary wheel from their GitHub webpage
You can download this binary wheel, that targets a Windows Python 2.7 64 bit installation.
All you have to do is:
Windows+R
and by running inside cmd
whl
file, with cd
instructionspip install zbar-0.10-cp27-none-win_amd64.whl
For example, the command can be
pip install zbar-0.10-cp27-none-win_amd64.whl
If you have several Python installations, make sure to use the correct pip
program.
You can do it for any package with some code that has to be compiled