If you use the Python "qrcode" used in this article, It was convenient because I could easily create a QR code, so I will summarize it. I have both Python v2.7.10 and v3.5.0 installed, but the Python I'm using this time is v3.5.0.
$ pip3 install pillow qrcode
Now you can use the qr command.
Use the qr command to actually generate the QR code via the Python API.
$ python3
>>> import qrcode #Start qrcode
>>> img = qrcode.make('hoge') #''Convert the characters in to QR code
>>> img.show() #Display the generated QR code
>>> img.save('qr_img.png') #Save the QR code as
Easy! Easy! that's all!
Recommended Posts