Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8192455
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T04:11:08+00:00 2026-06-07T04:11:08+00:00

I have installed pyqrcode => PyQRCode on Ubuntu 12.04 x86_64. by running make &&

  • 0

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
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T04:11:09+00:00Added an answer on June 7, 2026 at 4:11 am

    sudo pip install qrcode worked 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 qrcode directory — i.e. pyqrcode-0.2.1/qrcode instead of in the usual Python path. Try running it from another directory. To be specific:

    ~/sys/pyqrcode-0.2.1$ python
    Python 2.7.3 (default, Apr 20 2012, 22:44:07) 
    [GCC 4.6.3] 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 "qrcode/__init__.py", line 6, in <module>
        from qrcode import _qrcode
    ImportError: cannot import name _qrcode
    >>> 
    ~/sys/pyqrcode-0.2.1$ cd ~
    ~$ python
    Python 2.7.3 (default, Apr 20 2012, 22:44:07) 
    [GCC 4.6.3] on linux2
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import qrcode
    >>> qrcode
    <module 'qrcode' from '/usr/local/lib/python2.7/dist-packages/qrcode/__init__.pyc'>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have installed mySQL using sudo apt-get install mySQL-server then i have installed libmysqlclient15-dev
I have installed Eclipse & CDT plugin on newly installed Ubuntu. The indexing is
I have installed hadoop 1.0.1 in my ubuntu laptop by a deb install file.
I have installed my dependencies using bundle package Then transferred them to the offline
I have installed Xampp for ubuntu. It is located in /opt/lampp. I want to
I have installed Eclipse Indigo on Ubuntu 11.10, and the marketplace is not showing
I have installed wxWidgets 2.9.3 on Ubuntu 10.10 using ../configure --with-gtk I am using
I have installed rvm (mutiuser option) and ruby using rvm install on my test
I have installed 1.1.9 Yii framework.Then I made copy paste user module in my
I have installed django-registration with pip, version 0.7. Then with urls.py from core.forms import

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.