Python 3.x 使用Python3.x的Pyinstaller
我想在Linux中使用将脚本编译为二进制可执行文件,但问题是使用Python2.x而不是Python3.x进行编译。(构建过程成功,但我的脚本仅适用于python 2.x)。 日志: $pyinstaller script.py 22信息:PyInstaller:3.1.1 22信息:Python:2.7.6 22信息:平台:Linux-4.2.0-34-generic-x86_64-with-Ubuntu-14.04 如何配置Pyinstaller以使用Python 3.x编译我的脚本Python 3.x 使用Python3.x的Pyinstaller,python-3.x,pyinstaller,Python 3.x,Pyinstaller,我想在Linux中使用将脚本编译为二进制可执行文件,但问题是使用Python2.x而不是Python3.x进行编译。(构建过程成功,但我的脚本仅适用于python 2.x)。 日志: $pyinstaller script.py 22信息:PyInstaller:3.1.1 22信息:Python:2.7.6 22信息:平台:Linux-4.2.0-34-generic-x86_64-with-Ubuntu-14.04 如何配置Pyinstaller以使用Python 3.x编译我的脚本 我
我已解决问题,请使用pip3安装Pyinstaller:
sudo pip3 install pyinstaller
谢谢你的帮助 要为不同版本安装带有pip的软件包,您可以使用
pip3/pip2/pip2.7/pip3.5等
因此,要获得python 3的pyinstaller
,只需使用:
pip3 install pyinstaller
pip3安装pyinstaller
?使用pip3安装pyinstaller。是!它解决了我的问题。谢谢