Reputation: 11
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
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
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