我是 python 新手,我在 linux 机器上使用 python 和 wxpython 编写了脚本。现在我想将 .py 转换为 .exe ,为此我使用了 cxfreeze。创建exe的步骤
$ python setup.py build
$ python setup.py install
$ python pip cxfreeze
$ cxfreeze script.py
但是当我在其他系统中执行“./script(exe)”时,我得到了这个错误:
File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/initscripts/Console.py", line 27, in <module>
File "script.py", line 3, in <module>
File "/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/__init__.py", line 45, in <module>
File "/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 4, in <module>
File "ExtensionLoader_wx__core_.py", line 18, in <module>
ImportError: No module named None