get_version()PyInstaller语法错误 [英] get_version() PyInstaller Syntax Error

查看:67
本文介绍了get_version()PyInstaller语法错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在运行最新版本的python(3.3.2 32位Intel win32),并已安装PyInstaller将我的 *。py 文件编译为 * .exe 可执行文件。我通过Windows CMD( cmd.exe )编译文件,但收到错误:

I am running the latest version of python (3.3.2 32bit Intel win32) and have installed PyInstaller to compile my *.py files to *.exe executables. I compile my files via the Windows CMD (cmd.exe), but have recieved an error:

G:\PyInstaller>python pyinstaller.py prog.py
File "pyinstaller.py", line 73
print get_version()
                ^
SyntaxError: invalid syntax

有人想到为什么会出现这种错误吗?这两个程序都已正确安装,没有任何问题。谢谢。

Any thoughts of why this is error is occurring? Both of the programs have installed correctly without any problems. Thanks.

推荐答案

根据pyinstaller github页面官方站点尚不支持Python 3。

According to the pyinstaller github page and official site Python 3 is not yet supported.

另请参阅与您的错误有关的说明问题有关支持Python 3的问题

Also see the trac issue relevant to your error and the issue on supporting Python 3.

这篇关于get_version()PyInstaller语法错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆