Py2exe lxml woes

后端 未结 2 1786
逝去的感伤
逝去的感伤 2020-12-08 07:42

I have a wxpython application that depends on lxml and works well when running it through the python interpreter. However, when creating an exe with py2exe, I got this error

2条回答
  •  北荒
    北荒 (楼主)
    2020-12-08 07:59

    Sometimes you will need to do another action more after modify the setup.py file.

    As described here, it should be necessary to uninstall the package if it is installed on "eggs" archive. Then install it again by forcing easy_install to dezip the archive with the "-Z" option as following (I had the issue with paramiko package):

    pip uninstall paramiko
    easy_install -Z paramiko
    

提交回复
热议问题