How can I use 3rd party library like xlrd

How can I use 3rd party library like xlrd specifically in Scheduled Tasks?
I’m unable to add the library to my custom app.
I’ve tried -

  1. Adding the library name in requirements.txt and run bench build
  2. installing the library globally in a local resource.

bench build builds only css and js files.

You need to add the package name in requirementsand then run bench update --requirements. Or you can install the library into the virtual environment off which frappe runs by doing (from the frappe-bench folder)

.env/bin/pip install <package-name>

1 Like

Thank you for replying. I’ll try this and let you know the status.

Thank you. I think its working fine now. :grinning: