0

我已经设法使用 PyInstaller 从基于 PyQt 的 Python 应用程序制作了一个工作可执行文件(适用于 Windows),但它也适用于 Linux 吗?在 linux 机器 (LUbuntu) 上,当我运行 .py 脚本时,我遇到了关于缺少 PyQt 绑定的错误,由于无法连接服务器,我什至无法通过 apt-get 下载它们。以某种方式将丢失的库打包到我的程序文件中会更方便,以使其更具可移植性,但我该怎么做呢?

4

1 回答 1

0

如果您以 Linux 发行版的包格式打包您的应用程序,它可以包含依赖关系信息。这是这个问题的规范解决方案。

Otherwise you'd have to include all nested dependencies to make sure that it'll work.

于 2013-03-30T08:28:49.990 回答