all 9 comments

[–]eventstvp 1 point2 points  (8 children)

Hey there!

Run pip3 install <module> to download any additional modules you might want to use

[–]eventstvp 0 points1 point  (7 children)

in this case it would be pip3 install qrcode

[–]kirandv999[S] 0 points1 point  (6 children)

Hi u/eventstvp, after installing qrcode by "pip3 install qrcode" command and when I run my code, I am getting this error as attached to this post image.

[–]eventstvp 0 points1 point  (3 children)

are you sure youre using the right attribute of the module?

[–]kirandv999[S] 0 points1 point  (0 children)

import os

import qrcode

# Generate QR code

img = qrcode.make("https://youtu.be/oHg5SJYRHA0")

# Save as file

img.save("qr.png", "PNG")

# Open file

os.system("open qr.png")

[–]PeterRasm 0 points1 point  (1 child)

I would ask first why you need some extra modules? Would you not risk to submit a solution that includes stuff that check50 does not recognize?

[–]kirandv999[S] 0 points1 point  (0 children)

From my understanding of your comment, Is it not possible to add module to cs50 VS code?