3

背景:

  • Mac OSX 10.7.5
  • Python 2.7.3
  • PyInstaller 2.0

我正在尝试使用 PyInstaller 将一个简单的脚本制作成一个可执行文件。但是,每次我尝试运行pyinstaller.py(当然是在导航到 pyinstaller 文件夹之后)我都会收到一个错误:

TypeError: compile() expected string without null bytes

这是完整的控制台输出脚本本身。有谁知道出了什么问题?

4

1 回答 1

0

I got the same error. I have just found this link (http://www.gossamer-threads.com/lists/python/python/821709) and your doubt here about this error.

I have tried to install cx_freeze (https://pypi.python.org/pypi/cx_Freeze/4.3.1) but I got the error:

pip install cx_freeze

error: option --single-version-externally-managed not recognized

I do not know if one lib uses the other..

于 2013-05-01T02:41:28.183 回答