Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy
 

How to install zxing via python pip




zxing - Wrapper for decoding/reading barcodes with ZXing (Zebra Crossing) library, it belongs to Classifiers:

- Development Status :: 4 - Beta
- License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)
- Programming Language :: Python
- Programming Language :: Python :: 3
- Programming Language :: Python :: 3.6
- Programming Language :: Python :: 3.7
- Programming Language :: Python :: 3.8
- Programming Language :: Python :: 3.9
- Topic :: Multimedia
- Topic :: Multimedia :: Graphics
- Topic :: Multimedia :: Graphics :: Capture
- Topic :: Scientific/Engineering
- Topic :: Scientific/Engineering :: Image Recognition
- Topic :: Software Development
- Topic :: Software Development :: Libraries
- Topic :: Software Development :: Libraries :: Java Libraries
- Topic :: Software Development :: Libraries :: Python Modules
- Topic :: Utilities

When you know about this project and you want to new install zxing to support your project or you get trouble as ModuleNotFoundError: No module named "zxing" or ImportError: cannot import name "zxing" in your project, let follow this tutorial to install zxing



Installation:

Step 1: First, ensure you installed pip in your os, to check pip has been installed on your computer

In Windows (CMD):

py -m pip --version

In Unix/macOS:

python3 -m pip --version

Ensure pip, setuptools, and wheel are up to date:

In Windows (CMD):

py -m pip install --upgrade pip setuptools wheel

In Unix/macOS:

python3 -m pip install --upgrade pip setuptools wheel


Optional - If you want to install in virtual environment:

In Windows (CMD):

- Install virtualenv - if you installed it, please ignore

py -m pip install --user virtualenv

- Create a virtual environment

py -m venv test_zxing_env

- Active the virtual environment

test_zxing_env\Scripts\active

In Unix/macOS:

- Install virtualenv - if you installed it, please ignore

pip3 install virtualenv

- Create a virtual environment

python3 -m venv test_zxing_env

- Active the virtual environment

source test_zxing_env/bin/active


Step 2: OK, now, let flow below content to start the installation zxing

To install zxing on Windows(CMD):

py -m pip install zxing

To install zxing on Unix/macOs:

pip install zxing


Step 3: If you want to install a specific zxing version, add ==<zxing version> to the end command line

Example:

pip install zxing==0.9.1


Please see the version list below table:

VersionReleased dateCommand
zxing 0.142021-11-18T05:19:03Windows:

py -m pip install zxing==0.14

Unix/macOs:

pip install zxing==0.14

zxing 0.13.12021-09-10T19:29:03Windows:

py -m pip install zxing==0.13.1

Unix/macOs:

pip install zxing==0.13.1

zxing 0.132021-08-03T17:35:01Windows:

py -m pip install zxing==0.13

Unix/macOs:

pip install zxing==0.13

zxing 0.122020-11-27T23:55:08Windows:

py -m pip install zxing==0.12

Unix/macOs:

pip install zxing==0.12

zxing 0.112020-03-17T18:37:47Windows:

py -m pip install zxing==0.11

Unix/macOs:

pip install zxing==0.11

zxing 0.102019-12-10T23:21:25Windows:

py -m pip install zxing==0.10

Unix/macOs:

pip install zxing==0.10

zxing 0.9.32018-06-17T07:05:28Windows:

py -m pip install zxing==0.9.3

Unix/macOs:

pip install zxing==0.9.3

zxing 0.9.22018-03-24T01:46:33Windows:

py -m pip install zxing==0.9.2

Unix/macOs:

pip install zxing==0.9.2

zxing 0.9.12018-01-19T07:19:51Windows:

py -m pip install zxing==0.9.1

Unix/macOs:

pip install zxing==0.9.1


Step 4: Otherwise, you can install zxing from local archives:

Download the distribution file from zxing-0.14.tar.gz or the specific zxing version in the below list of distribution

After that, install by command:

On Windows(CMD):

py -m pip install <path_to_zxing_downloaded_file>

On Unix/macOs:

pip install <path_to_zxing_downloaded_file>


List distribution:


Project link:

- Homepage