dlenski / python-zxing

python wrapper for the ZXing barcode library
GNU Lesser General Public License v3.0
121 stars 36 forks source link

Command-line interface #11

Closed chonuchan closed 3 years ago

chonuchan commented 3 years ago

Hi may I ask how to install the Command-line interface?(for Linux) The package is otherwise working fine in Python 3.5. Thank you.

dlenski commented 3 years ago

Did pip3 install zxing not do it?

chonuchan commented 3 years ago

Thanks for your reply. yes, I used "pip3.5 install zxing" to install this package. If I type zxing in command line, it returns: bash: zxing: command not found

dlenski commented 3 years ago

Thanks for your reply. yes, I used "pip3.5 install zxing" to install this package. If I type zxing in command line, it returns: bash: zxing: command not found

What OS/distribution? On Linux, pip normally installs command-line script entry points in ~/.local/bin. Is that where it's installing them on your system? Is that directory in your $PATH?

chonuchan commented 3 years ago

Thanks! indeed my ~/.local/bin is not in $PATH (but this is what I intended).

Solved by sudo cp ~/.local/bin/zxing /usr/local/bin