Dhirendrasinh
Dhirendrasinh

Reputation: 11

Python barcode library

I am looking for the python barcode library. I am using ubuntu 12.04 and installed a pyBarcode libarary to generate barcode. but it is not supporting.it give me error like,

>>> import barcode
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named barcode

Any guess?

Upvotes: 0

Views: 4305

Answers (3)

AkIonSight
AkIonSight

Reputation: 385

Use the pdf 417 module. One of the easiest to use and the best

Upvotes: 0

WhyNotHugo
WhyNotHugo

Reputation: 9916

Check running python -c "import sys; print(sys.path)" and then running adding python -c "import sys; print(sys.path)" into the python file you're running.

Does the output of both differ? If so, then the PYTHONPATH (or maybe even python itself) in however you're running Python is different from the one pip used.

Upvotes: 0

Kartik Mistry
Kartik Mistry

Reputation: 445

If you've not installed it in standard path/location, make sure your PYTHONPATH is pointing to directory where library is installed.

Upvotes: 1

Related Questions