我在Ubuntu 12.04 x86_64上安裝了pyqrcode =>PyQRCode。 通過運行make & & sudo make install。Python ImportError
在隨後結束的成功品牌/ make安裝,最後一行是:
Installed /usr/local/lib/python2.7/dist-packages/qrcode-0.2.1-py2.7-linux-x86_64.egg
但是,當我嘗試導入的QRCode我得到這個錯誤:
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
我也嘗試過使用pip,它說qrcode已經安裝(從源安裝後嘗試) – michael 2012-07-07 23:11:55