-1

我如何在使用 AVC(http://avc.inrim.it/html/)的 python 脚本上使用 Pyinstaller?

我以正常方式尝试过,输出可执行应用程序抛出错误。:

ImportError: No module named avc.avcgtk

.

[编辑]

我已经使用 pip 安装了 pygtk 和 avc。此处使用的示例脚本,在 python 上运行良好:http: //avc.inrim.it/examples/gtk_spinbutton.py http://avc.inrim.it/examples/gtk_spinbutton.glade

4

1 回答 1

0

我不知道这是怎么回事。

对于使用 python 正常运行该示例脚本,only from avc import *是必需的,但由于某种原因 pyinstaller 找不到 avc.avcgtk 模块,因此在使用 pyinstaller 创建独立应用程序时还需要额外的虚拟导入。

from avc import *
import avc.avcgtk  
于 2013-09-22T15:35:03.563 回答