我有一个错误,当我使用pyqrcode。在Linux上的Python的qrcode
[[email protected] python2.6]# python
Python 2.6.5 (r265:79063, Sep 7 2010, 07:31:57)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-48)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import qrcode
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.6/site-packages/qrcode-0.2.1-py2.6-linux-x86_64.egg/qrcode/__init__.py", line 6, in <module>
from qrcode import _qrcode
ImportError: cannot import name _qrcode
如何解决上述错误?
我从http://pyqrcode.sourceforge.net/
感谢, 马努
你是如何在机器上安装pyqrcode? – tzot 2010-10-21 12:21:57
我有同样的错误。我从源代码安装在Ubuntu 12.04 x86_64上。 – michael 2012-07-07 23:00:11
来源显然有问题。 在qrcode包中没有任何内容,只有\ _ \ _ init \ _ \ _。py文件。 – Bakuriu 2012-08-17 10:40:32