简体   繁体   中英

Add Tkinter to AWS Lambda

I want to use Tkinter with AWS Lambda,I copied the tkinter folder from the lib folder: C:\\Users\\AGOJSO\\AppData\\Local\\Programs\\Python\\Python36\\lib\\tkinter

And then made a zip file containing the tkinter folder and lambda_function.py, I made a ZIP file and uploaded it to AWS Lambda.

Then on top of the code i wrote:

from /tkinter import * tk = Tk()

getting this error: Syntax error in module 'lambda_function': invalid syntax (lambda_function.py, line 4)

Help please.

You aren't going to be able to run tkinter on AWS lambda. Tkinter requires a display.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM