简体   繁体   English

在Windows上使用pyinstaller从.py构建.dmg文件?

[英]Build a .dmg file from .py using pyinstaller on windows?

I have to build a python app for a MacOS user and I'm using Windows. 我必须为MacOS用户构建一个python应用程序,并且正在使用Windows。 I saw that using pyinstaller you can build .app files, but how do I do that on Windows? 我看到使用pyinstaller可以构建.app文件,但是如何在Windows上执行呢?

As Pyinstaller's docs states: Pyinstaller的文档所述:

PyInstaller is tested against Windows, Mac OS X, and GNU/Linux. PyInstaller已针对Windows,Mac OS X和GNU / Linux进行了测试。 However, it is not a cross-compiler: to make a Windows app you run PyInstaller in Windows; 但是,它不是交叉编译器:要制作Windows应用程序,请在Windows中运行PyInstaller。 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. 要创建GNU / Linux应用程序,请在GNU / Linux等环境中运行它。PyInstaller已成功与AIX,Solaris和FreeBSD结合使用,但尚未针对它们进行测试。

This means you can't by only using Pyinstaller. 这意味着您不能仅使用Pyinstaller。 You can try using something like a virtual machine, or containers, and use the common way ( pyinstaller <script>.py ) to do this 您可以尝试使用虚拟机或容器之类的东西,并使用常见方式( pyinstaller <script>.py )执行此操作

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

相关问题 如何使用 pyinstaller 将多个 .py 文件构建为单个可执行文件? - How to build multiple .py files into a single executable file using pyinstaller? 使用 pyinstaller 将 .py 转换为 .exe 文件 - Converting .py to .exe file using pyinstaller 如何从 PyInstaller .exe 恢复 .py 文件? - How to recover a .py file from PyInstaller .exe? 无法使用 PyInstaller 库从 .py 到 .exe 构建 python 程序 - can't build python program from .py to .exe using PyInstaller library 如何从 exe 文件(使用 pyinstaller 将 py 文件转换为 exe 生成)中读取 excel 文件? - How to read an excel file from a exe file (which is generated by converting py file into exe using pyinstaller)? 使用 pyinstaller 从 python .py 文件利用 Pandas 创建可执行文件以读取 CSV 文件? - Using pyinstaller to make an executable file from python .py file utilizing Pandas to read a CSV file? 使用 PyInstaller 将 .py 和 .txt 文件封装成 .exe 文件 - Encapsulate .py and .txt file into .exe file using PyInstaller 我想使用 pyinstaller 将 .py 文件转换为 exe 文件 - I want to make .py file into exe file by using pyinstaller 使用pyinstaller将.py文件和.txt文件合并到.exe文件中 - Merging .py file and .txt files into .exe file using pyinstaller 在包含statsmodels的.py文件上使用PyInstaller(控制台,onefile) - Using PyInstaller (console, onefile) on a .py file that includes statsmodels
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM