日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程语言 > python >内容正文

python

python3打包exe_[求助]入坑学习python 需要装pyinstaller打包成exe

發布時間:2025/3/15 python 18 豆豆
生活随笔 收集整理的這篇文章主要介紹了 python3打包exe_[求助]入坑学习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時的東西

總結

以上是生活随笔為你收集整理的python3打包exe_[求助]入坑学习python 需要装pyinstaller打包成exe的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。