How To Install Python3 On Google APPENGINE

52 views
Skip to first unread message

Pascoal Willkizy

unread,
Sep 25, 2018, 1:45:03 PM9/25/18
to Google App Engine
Hello, i am using GAE with php runtime to host my page in php and i need to call my backend script created in python3.

I  use: shell_exec("python3  script.py")
To call my BACKEND Script created in python3.

When i do it, its return an error saying: python3 not found.
But when i use: Python script.py
Its works successful, but using python2, so that, how i can use python3??
Is there a way to install apps such as python3, etc on the instance of GAE ?

Note: I've already tried to install using: sudo apt-get install python3, but this only works on my instance of GAE and not on my xxxx.appspot.com

Phillip Pearson

unread,
Sep 25, 2018, 4:51:07 PM9/25/18
to google-a...@googlegroups.com
I don't believe Python 3 is part of the PHP runtime.  You'll have to file a feature request to get it added, or build a minimal Python distribution and upload it with your app.

Regards,
Phil

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/ffa30eea-dd79-4630-ae3f-2f853a6cf8cf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Julie (cloud platform support)

unread,
Sep 26, 2018, 10:25:33 AM9/26/18
to Google App Engine
Using App Engine Flex with a custom runtime and specifying both Python3 and PHP as the runtime may allow you to call your backend script. 
Reply all
Reply to author
Forward
0 new messages