Mac 上 py2app 的问题
我最近开始编写 python 代码,并编写了我的第一个应用程序,我想以单个应用程序而不是 python 脚本的形式提供给我的一些朋友。在互联网上搜索后,我认为 py2app 是最好的主意。我尝试了很多方法安装py2app,感觉终于安装好了。我尝试创建一个 setup.py,这就是我得到的结果。
John-Smith-MacBook:~ johnsmith$ py2applet --make-setup main.py
Traceback (most recent call last):
File "/usr/local/bin/py2applet", line 2, in <module>
from py2app.scripts.script_py2applet import main
ImportError: No module named scripts.script_py2applet
请帮忙!
干杯。
I've recently started to code python, and have written my first applications that I would like to give to some of my friends in the form of a single application, NOT a python script. After scouring the internet, I decided that py2app was the best idea. I've tried to install py2app in many ways, and I felt like it was finally installed. I tried to create a setup.py and this is what I got back.
John-Smith-MacBook:~ johnsmith$ py2applet --make-setup main.py
Traceback (most recent call last):
File "/usr/local/bin/py2applet", line 2, in <module>
from py2app.scripts.script_py2applet import main
ImportError: No module named scripts.script_py2applet
Please help!
Cheers.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论