0

I have installed qrcode package as pip install pyqrcode

Then when I open a python2.x shell and import it there, no errors are given. But when I open a python3 shell and try to import it there it says

ImportError: No module named 'qrcode'

I import it as import qrcode

When I installed the package with pip it says Downloading PyQRCode-1.2.tar.gz, meaning that it is installing the last version. But in pypi it says that it also support python3.

What's the correct way to import it?

user3764893
  • 697
  • 5
  • 16
  • 33

1 Answers1

3

You need to download a separate package for python 3. pip3 install pyqrcode

Then you can access it. Of course you will need to install pip3 first if you don't have it.

Darren Haynes
  • 1,343
  • 4
  • 18
  • 31