简体   繁体   English

在Windows上运行Python脚本(Tkinter)

[英]running Python script (Tkinter) on Windows

I coded a script to help a person running a little experiment. 我编写了一个脚本来帮助一个人进行一些实验。 To make it easy, I programmed a little GUI using Tkinter. 为简单起见,我使用Tkinter编写了一个小GUI。

Everything works smoothly on my Ubuntu laptop, and she's very happy with it. 一切都能在我的Ubuntu笔记本电脑上顺利运行,她对此感到非常满意。 The problem is: she only runs Windows on her PC. 问题是:她仅在PC上运行Windows。 Is there a way to make the script work on Windows too (considering it uses graphical libraries from Tkinter?). 有没有一种方法可以使脚本也可以在Windows上运行(考虑它使用来自Tkinter的图形库?)。 I would be very happy if I could just pack everything into a .exe file that I could then send over by email. 如果能将所有内容打包到一个.exe文件中,然后再通过电子邮件发送,我将非常高兴。

Keep in mind that I have to do everything on my PC (where there is only Linux) and then she has to run it on hers, where there is only Windows. 请记住,我必须在PC(只有Linux)上执行所有操作,然后她必须在只有Windows的PC上运行它。 Any suggestion? 有什么建议吗?

Thank you very much! 非常感谢你!

您可以使用pyinstallerpy2exe之类的东西。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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