Error Installing Pyzbar With Conda On Mac Os X
I am attempting to convert a project from a Python 3 venv to Conda. However, it doesn't work with Conda, apparently because there is no repository that supports macOS. This is disa
Solution 1:
Yes, it looks like pyzbar
is not available through Anaconda Cloud channels for osx-64 platform. Instead, one can (cautiously) mix PyPI and Conda packages. For example, a basic YAML definition would be something like:
zbar_env.yaml
name:zbar_envchannels:-conda-forge-defaultsdependencies:-python=3-zbar-pip-pip:-pyzbar
which can be instantiated with:
conda env create -f zbar_env.yaml
As per the recommendations for mixing PyPI and Conda, place all requirements in this YAML file from the start. If you need to add something new, edit the YAML and recreate the env.
Alternatively, you could switch to zbarlight
, which is available through Conda Forge and appears to be consistently maintained.
Post a Comment for "Error Installing Pyzbar With Conda On Mac Os X"