I have deployed a Web Application in the Google App Engine. The Application gets the doc and docx files and convert it to PDF and then uploads to Google Drive.
Issue i am facing is, Python uses doc2pdf library to convert the doc file to PDF. The doc2pdf internally uses apt install libreoffice-writer -y
library to convert it to PDF.
How can i install the apt install libreoffice-writer -y
in the Google App Engine.
Any help is very helpful.
Slight modification to @FerreginaPelona statement - The newer runtimes of GAE Standard allows for the installation of 3rd party libraries (refer to Google Documentation - search for ' Supports installing third-party binaries '). In plain English - if you're using Python 3 on GAE Standard, you can have 3rd party packages. You create a requirements.txt file, list the packages and they will be installed when your code is run on Production.
Python 2 (the older runtime) also supports certain types of 3rd party libraries. Per the documentation , you can only use libraries which are ... implemented as pure Python code with no C extensions .... That link shows how to add those libraries to your project.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.