当前位置:首页 » 编程软件 » python打包编译出错无法预览

python打包编译出错无法预览

发布时间: 2023-02-24 14:08:28

python程序运行没事,但是打包成exe会运行出错,代码、截图如下,谢谢

找不到文件。。。。。。。你看下需要调用什么文件了,看看是否存在那个路径

Ⅱ python中我用pyinstaller打包的exe文件打不开,报错如下 是什么问题啊 F

  • 被打包的文件:helloworld.py, 人人皆知.

  • 打包的命令:pyinstaller -D helloworld.py

  • 打包的console提示: 见随后的引述块

  • 打包发布exe时的纪律(注意事项):

  • 很简单的py脚本. Simple is better than complex. 应该遵守Python的规则.

  • 所以在打包为exe时, 应该尽量减少没有必要的python包的导入. 否则吃的太胖

  • 可以运行的exe文件位于:dist目录下, 而不是build目录下的.

  • 运行后的结果:

  • D:DBfz>pyinstaller -D helloworld.py155 INFO: PyInstaller: 3.2.1155 INFO: Python: 2.7.11155 INFO: Platform: Windows-XP-5.1.2600-SP3155 INFO: wrote D:DBfzhelloworld.spec155 INFO: UPX is not available.155 INFO: Extending PYTHONPATH with paths

  • ['D:\DB', 'D:\DB\fz']155 INFO: checking Analysis155 INFO: Building Analysis because out00-Analysis.toc is non existent155 INFO: Initializing mole dependency graph...155 INFO: Initializing mole graph hooks...312 INFO: running Analysis out00-Analysis.toc327 INFO: Adding Microsoft.VC90.CRT to dependent assemblies of final executable required by d:anaconda2python.exe327 INFO: Found C:WINDOWSWinSxSPoliciesx86_policy.9.0.Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_x-ww_b7353f759.0.30729.1.policy327 INFO: Searching for assembly x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.30729.1_x-ww ...327 INFO: Found manifest C:WINDOWSWinSxSManifestsx86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.30729.1_x-ww_6f74963e.manifest327 INFO: Searching for file msvcr90.dll327 INFO: Found file C:WINDOWSWinSxSx86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.30729.1_x-ww_6f74963emsvcr90.dll327 INFO: Searching for file msvcp90.dll327 INFO: Found file C:WINDOWSWinSxSx86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.30729.1_x-ww_6f74963emsvcp90.dll327 INFO: Searching for file msvcm90.dll343 INFO: Found file C:WINDOWSWinSxSx86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.30729.1_x-ww_6f74963emsvcm90.dll343 INFO: Found C:WINDOWSWinSxSPoliciesx86_policy.9.0.Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_x-ww_b7353f759.0.30729.1.policy343 INFO: Adding redirect Microsoft.VC90.CRT version (9, 0, 21022, 8) -> (9, 0,30729, 1)484 INFO: Caching mole hooks...500 INFO: Analyzing D:DBfzhelloworld.py500 INFO: Loading mole hooks...500 INFO: Loading mole hook "hook-encodings.py"...5405 INFO: Loading mole hook "hook-httplib.py"...5421 INFO: Looking for ctypes DLLs5437 INFO: Analyzing run-time hooks ...5452 INFO: Looking for dynamic libraries6155 INFO: Looking for eggs6155 INFO: Using Python library d:anaconda2python27.dll6171 INFO: Found binding redirects:[BindingRedirect(name=u'Microsoft.VC90.CRT', language=None, arch=u'x86', oldVersion=(9, 0, 21022, 8), newVersion=(9, 0, 30729, 1), publicKeyToken=u'1fc8b3b9a1e18e3b')]6187 INFO: Warnings written to D:DBfzuildhelloworldwarnhelloworld.txt6280 INFO: checking PYZ6296 INFO: Building PYZ because out00-PYZ.toc is non existent6296 INFO: Building PYZ (ZlibArchive) D:DBfzuildhelloworldout00-PYZ.pyz6968 INFO: Building PYZ (ZlibArchive) D:DBfzuildhelloworldout00-PYZ.pyz completed successfully.7062 INFO: checking PKG7062 INFO: Building PKG because out00-PKG.toc is non existent7077 INFO: Building PKG (CArchive) out00-PKG.pkg7125 INFO: Building PKG (CArchive) out00-PKG.pkg completed successfully.7140 INFO: Bootloader d:anaconda2libsite-packagesPyInstallerootloaderWindows-32bit un.exe7140 INFO: checking EXE7155 INFO: Building EXE because out00-EXE.toc is non existent7155 INFO: Building EXE from out00-EXE.toc7171 INFO: Appending archive to EXE D:DBfzuildhelloworldhelloworld.exe7171 INFO: Building EXE from out00-EXE.toc completed successfully.7187 INFO: checking COLLECT7202 INFO: Building COLLECT because out00-COLLECT.toc is non existent7202 INFO: Building COLLECT out00-COLLECT.toc7218 INFO: Redirecting Microsoft.VC90.CRT version (9, 0, 21022, 8) -> (9, 0, 30729, 1)7375 INFO: Redirecting Microsoft.VC90.CRT version (9, 0, 21022, 8) -> (9, 0, 30729, 1)7390 INFO: Updating manifest in C:Documents and Datapyinstallerincache00_py27_32bitpython27.dll7405 INFO: Updating resource type 24 name 2 language 10337468 INFO: Redirecting Microsoft.VC90.CRT version (9, 0, 21022, 8) -> (9, 0, 30729, 1)7484 INFO: Updating manifest in C:Documents and Datapyinstallerincache00_py27_32bitunicodedata.pyd7500 INFO: Updating resource type 24 name 2 language 10337546 INFO: Redirecting Microsoft.VC90.CRT version (9, 0, 21022, 8) -> (9, 0, 30729, 1)7562 INFO: Updating manifest in C:Documents and Datapyinstallerincache00_py27_32bit\_hashlib.pyd7562 INFO: Updating resource type 24 name 2 language 10337609 INFO: Redirecting Microsoft.VC90.CRT version (9, 0, 21022, 8) -> (9, 0, 30729, 1)7625 INFO: Updating manifest in C:Documents and Datapyinstallerincache00_py27_32bit\_ctypes.pyd7640 INFO: Updating resource type 24 name 2 language 10337687 INFO: Redirecting Microsoft.VC90.CRT version (9, 0, 21022, 8) -> (9, 0, 30729, 1)7702 INFO: Updating manifest in C:Documents and Datapyinstallerincache00_py27_32bit\_ssl.pyd7718 INFO: Updating resource type 24 name 2 language 10337812 INFO: Redirecting Microsoft.VC90.CRT version (9, 0, 21022, 8) -> (9, 0, 30729, 1)7827 INFO: Updating manifest in C:Documents and Datapyinstallerincache00_py27_32bit\_socket.pyd7843 INFO: Updating resource type 24 name 2 language 10337875 INFO: Redirecting Microsoft.VC90.CRT version (9, 0, 21022, 8) -> (9, 0, 30729, 1)7890 INFO: Updating manifest in C:Documents and Datapyinstallerincache00_py27_32bitselect.pyd7905 INFO: Updating resource type 24 name 2 language 10337952 INFO: Redirecting Microsoft.VC90.CRT version (9, 0, 21022, 8) -> (9, 0, 30729, 1)7968 INFO: Updating manifest in C:Documents and Datapyinstallerincache00_py27_32bitz2.pyd7968 INFO: Updating resource type 24 name 2 language 10338046 INFO: Building COLLECT out00-COLLECT.toc completed successfully.D:DBfz>

热点内容
java返回this 发布:2025-10-20 08:28:16 浏览:746
制作脚本网站 发布:2025-10-20 08:17:34 浏览:1009
python中的init方法 发布:2025-10-20 08:17:33 浏览:715
图案密码什么意思 发布:2025-10-20 08:16:56 浏览:876
怎么清理微信视频缓存 发布:2025-10-20 08:12:37 浏览:774
c语言编译器怎么看执行过程 发布:2025-10-20 08:00:32 浏览:1124
邮箱如何填写发信服务器 发布:2025-10-20 07:45:27 浏览:349
shell脚本入门案例 发布:2025-10-20 07:44:45 浏览:227
怎么上传照片浏览上传 发布:2025-10-20 07:44:03 浏览:911
python股票数据获取 发布:2025-10-20 07:39:44 浏览:873