I would like to use third party python libraries in a server whitelist script.
The thing is: by running pip pip install pdfminer I am unable to use this library in a py file:
Failed to get method for command
xxx.xxx.doctype.yyy.pdf_data.pdfmetadata with No module named 'pdfminer'
Is it even possible to import third party libraries using installation manager that fixes all prerequisites?
Frappe/ERPNext automatically activates the 'env' virtual environment on startup. You don’t need to activate manually yourself.
It works the same in production.
If you don’t want to manually'pip install ...' in every environment? Then you would add your Python package requirements to your App’s “requirements.txt” file. (packages named in “requirements.txt” are automatically installed when you install the App)
As an example, here’s a link to the ERPNext App’s 'requirements.txt'.