Does anyone know how to install "pip install 'qrcode[pil]'" in frappe cloud?

Thank you for helping.

Hi,

Please add the same in requirements.txt of your custom app.

During installation of your custom app system will install it.

Regards,

Divyesh Mangroliya

1 Like

Thanks for the response @mangroliya. I just added file requirements.txt and updated my site, but still I am getting error

“Failed to get method for command erpnext_config.public.py.qrcode.generate_qr_code with No module named ‘qrcode’”

Hi,

Please add following two lines in requirement.txt and check:

qrcode
"qrcode[pil]"

Thanks,
Divyesh Mangroliya

1 Like

Still I have receive the same error. Is the path of my requirements is correct? my_app/requirements.txt. Please help. Thank you

Hi,

Path is correct. From Frappecloud Control panel, go to your site and on Action Tab, Run Migrate.

Thanks,

Divyesh M.

1 Like

I already migrate but still i have encountered the same error. Sorry about this @mangroliya