Getting py2exe to work with zope.interface

后端 未结 3 1475
星月不相逢
星月不相逢 2020-12-17 02:58

I have a Python app based on Twisted and PyGTK. Twisted itself depends on zope.interface, and I don\'t import it directly.

Unfortunately, when I try to run my app, t

3条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-17 03:29

    I was facing this issue in creating a package using py2exe in Windows XP SP3. I figured out that py2exe was not determining the dependencies correctly.

    To solve this issue, I uninstalled my third party package(s) and installed them using following easy_install command

    easy_install -Z

    The -Z option unzips the package details, and hence the content is not compressed. When you run py2exe now, it will correctly detect the dependencies.

    Hope this helps!

提交回复
热议问题