在Windows上使用pyinstaller从.py构建.dmg文件? [英] Build a .dmg file from .py using pyinstaller on windows?

查看:64
本文介绍了在Windows上使用pyinstaller从.py构建.dmg文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须为MacOS用户构建一个python应用程序,并且正在使用Windows.我看到使用pyinstaller可以构建.app文件,但是如何在Windows上做到这一点?

I have to build a python app for a MacOS user and I'm using Windows. I saw that using pyinstaller you can build .app files, but how do I do that on Windows?

推荐答案

Pyinstaller的文档所述:

PyInstaller已针对Windows,Mac OS X和GNU/Linux进行了测试.但是,它不是交叉编译器:要运行Windows应用程序Windows中的PyInstaller;要制作一个GNU/Linux应用程序,您可以在GNU/Linux等.PyInstaller已成功与AIX一起使用,Solaris和FreeBSD,但尚未针对它们进行测试.

PyInstaller is tested against Windows, Mac OS X, and GNU/Linux. However, it is not a cross-compiler: to make a Windows app you run PyInstaller in Windows; to make a GNU/Linux app you run it in GNU/Linux, etc. PyInstaller has been used successfully with AIX, Solaris, and FreeBSD, but is not tested against them.

这意味着您不能仅使用Pyinstaller.您可以尝试使用虚拟机或容器之类的东西,并使用常用方法 (pyinstaller

登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆