I have installed pyqrcode => PyQRCode on Ubuntu 12.04 x86_64.
by running make && sudo make install.
At then end of the successful make/make install, the last line is:
Installed
/usr/local/lib/python2.7/dist-packages/qrcode-0.2.1-py2.7-linux-x86_64.egg
But when I try to import qrcode I get this error:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "qrcode/__init__.py", line 6, in <module>
from qrcode import _qrcode
ImportError: cannot import name _qrcode
sudo pip install qrcodeworked just fine for me.My guess is that after compiling, you started Python up from the source directory, and so it looked in the local
qrcodedirectory — i.e.pyqrcode-0.2.1/qrcodeinstead of in the usual Python path. Try running it from another directory. To be specific: