python封装需要安装什么软件好_[求助]入坑学习python 需要装pyinstaller打包成exe

该楼层疑似违规已被系统折叠 隐藏此楼查看此楼

E:\Python>pyinstaller -F E:\Python\123.py

142 INFO: PyInstaller: 3.2.1

142 INFO: Python: 3.5.3

142 INFO: Platform: Windows-7-6.1.7601-SP1

143 INFO: wrote E:\Python\123.spec

144 INFO: UPX is not available.

146 INFO: Extending PYTHONPATH with paths

['E:\\Python', 'E:\\Python']

147 INFO: checking Analysis

147 INFO: Building Analysis because out00-Analysis.toc is non existent

147 INFO: Initializing module dependency graph...

149 INFO: Initializing module graph hooks...

152 INFO: Analyzing base_library.zip ...

3175 INFO: running Analysis out00-Analysis.toc

3179 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of f

inal executable

required by E:\Python\Python\python.exe

3724 INFO: Caching module hooks...

3731 INFO: Analyzing E:\Python\123.py

Traceback (most recent call last):

File "E:\Python\Python\Scripts\pyinstaller-script.py", line 11, in

load_entry_point('PyInstaller==3.2.1', 'console_scripts', 'pyinstaller')()

File "E:\Python\Python\lib\site-packages\pyinstaller-3.2.1-py3.5.egg\PyInstall

er\__main__.py", line 90, in run

run_build(pyi_config, spec_file, **vars(args))

File "E:\Python\Python\lib\site-packages\pyinstaller-3.2.1-py3.5.egg\PyInstall

er\__main__.py", line 46, in run_build

PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)

File "E:\Python\Python\lib\site-packages\pyinstaller-3.2.1-py3.5.egg\PyInstall

er\building\build_main.py", line 788, in main

build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'

))

File "E:\Python\Python\lib\site-packages\pyinstaller-3.2.1-py3.5.egg\PyInstall

er\building\build_main.py", line 734, in build

exec(text, spec_namespace)

File "", line 16, in

File "E:\Python\Python\lib\site-packages\pyinstaller-3.2.1-py3.5.egg\PyInstall

er\building\build_main.py", line 212, in __init__

self.__postinit__()

File "E:\Python\Python\lib\site-packages\pyinstaller-3.2.1-py3.5.egg\PyInstall

er\building\datastruct.py", line 161, in __postinit__

self.assemble()

File "E:\Python\Python\lib\site-packages\pyinstaller-3.2.1-py3.5.egg\PyInstall

er\building\build_main.py", line 413, in assemble

priority_scripts.append(self.graph.run_script(script))

File "E:\Python\Python\lib\site-packages\pyinstaller-3.2.1-py3.5.egg\PyInstall

er\depend\analysis.py", line 144, in run_script

self._top_script_node = super(PyiModuleGraph, self).run_script(pathname)

File "E:\Python\Python\lib\site-packages\pyinstaller-3.2.1-py3.5.egg\PyInstall

er\lib\modulegraph\modulegraph.py", line 1432, in run_script

co_ast = compile(contents, pathname, 'exec', ast.PyCF_ONLY_AST, True)

File "E:\Python\123.py", line 1

Python 3.5.3 (v3.5.3:1880cb95a742, Jan 16 2017, 16:02:32) [MSC v.1900 64 bit

(AMD64)] on win32

^

SyntaxError: invalid syntax

E:\Python>

这是我生成exe时的东西

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值