鱼C论坛

 找回密码
 立即注册
查看: 2062|回复: 3

WordCloud词云打包exe不能运行

[复制链接]
发表于 2019-8-5 23:06:54 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能^_^

您需要 登录 才可以下载或查看,没有账号?立即注册

x
写了个WordCloud,在VS code 中运行正常,使用pyinstaller打包成功:
pyinstaller -F -w WordCloud4.py
但exe运行出现:Failed to execute script WordCloud4
求大佬们帮助       
小甲鱼最新课程 -> https://ilovefishc.com
回复

使用道具 举报

发表于 2019-8-6 09:45:57 | 显示全部楼层
去掉-w,重新运行后把黑框里的报错贴出来
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

 楼主| 发表于 2019-8-11 17:29:24 | 显示全部楼层
                           pyinstaller -F  WordCloud4.py
121 INFO: PyInstaller: 4.0.dev0+269779f91
121 INFO: Python: 3.7.4
121 INFO: Platform: Windows-10-10.0.17763-SP0
125 INFO: wrote E:\My python\wordcloud\WordCloud4.spec
127 INFO: UPX is not available.
129 INFO: Extending PYTHONPATH with paths
['E:\\My python', 'E:\\My python\\wordcloud']
129 INFO: checking Analysis
129 INFO: Building Analysis because Analysis-00.toc is non existent
130 INFO: Initializing module dependency graph...
134 INFO: Initializing module graph hooks...
144 INFO: Analyzing base_library.zip ...
5914 INFO: running Analysis Analysis-00.toc
5920 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of final executable
  required by c:\users\31209\appdata\local\programs\python\python37\python.exe
6004 INFO: Caching module hooks...
6029 INFO: Analyzing E:\My python\wordcloud\WordCloud4.py
6316 INFO: Processing pre-find module path hook   distutils
6412 INFO: Processing pre-find module path hook   site
6414 INFO: site: retargeting to fake-dir 'c:\\users\\31209\\appdata\\local\\programs\\python\\python37\\lib\\site-packages\\PyInstaller\\fake-modules'
11215 INFO: Processing pre-safe import module hook   setuptools.extern.six.moves
15518 INFO: Loading module hooks...
15518 INFO: Loading module hook "hook-distutils.py"...
15521 INFO: Loading module hook "hook-encodings.py"...
15614 INFO: Loading module hook "hook-lib2to3.py"...
15622 INFO: Loading module hook "hook-numpy.core.py"...
15760 INFO: Loading module hook "hook-numpy.py"...
15761 INFO: Loading module hook "hook-PIL.Image.py"...
16468 INFO: Loading module hook "hook-PIL.py"...
16470 INFO: Excluding import 'tkinter'
16471 INFO:   Removing import of tkinter from module PIL.ImageTk
16472 INFO: Excluding import 'PyQt5'
16474 INFO:   Removing import of PyQt5.QtGui from module PIL.ImageQt
16474 INFO:   Removing import of PyQt5.QtCore from module PIL.ImageQt
16475 INFO: Import to be excluded not found: 'FixTk'
16475 INFO: Excluding import 'PySide'
16477 INFO:   Removing import of PySide from module PIL.ImageQt
16478 INFO: Excluding import 'PyQt4'
16480 INFO:   Removing import of PyQt4 from module PIL.ImageQt
16481 INFO: Loading module hook "hook-PIL.SpiderImagePlugin.py"...
16485 INFO: Import to be excluded not found: 'FixTk'
16486 INFO: Excluding import 'tkinter'
16487 INFO: Loading module hook "hook-pkg_resources.py"...
17106 INFO: Processing pre-safe import module hook   win32com
17220 INFO: Loading module hook "hook-pydoc.py"...
17221 INFO: Loading module hook "hook-PyQt5.py"...
17421 WARNING: Hidden import "sip" not found!
17421 INFO: Loading module hook "hook-PyQt5.QtCore.py"...
17514 INFO: Loading module hook "hook-PyQt5.QtGui.py"...
17700 INFO: Loading module hook "hook-PyQt5.QtWidgets.py"...
17969 INFO: Loading module hook "hook-pythoncom.py"...
18253 INFO: Loading module hook "hook-pywintypes.py"...
18535 INFO: Loading module hook "hook-setuptools.py"...
19172 INFO: Loading module hook "hook-sysconfig.py"...
19174 INFO: Loading module hook "hook-win32com.py"...
19753 INFO: Loading module hook "hook-xml.dom.domreg.py"...
19754 INFO: Loading module hook "hook-xml.py"...
19756 INFO: Loading module hook "hook-_tkinter.py"...
19991 INFO: checking Tree
19992 INFO: Building Tree because Tree-00.toc is non existent
19992 INFO: Building Tree Tree-00.toc
20140 INFO: checking Tree
20140 INFO: Building Tree because Tree-01.toc is non existent
20141 INFO: Building Tree Tree-01.toc
20212 INFO: Looking for ctypes DLLs
20241 INFO: Analyzing run-time hooks ...
20247 INFO: Including run-time hook 'pyi_rth_pyqt5.py'
20260 INFO: Including run-time hook 'pyi_rth_multiprocessing.py'
20273 INFO: Including run-time hook 'pyi_rth_pkgres.py'
20286 INFO: Including run-time hook 'pyi_rth_win32comgenpy.py'
20329 INFO: Looking for dynamic libraries
22328 INFO: Looking for eggs
22328 INFO: Using Python library c:\users\31209\appdata\local\programs\python\python37\python37.dll
22329 INFO: Found binding redirects:
[]
22343 INFO: Warnings written to E:\My python\wordcloud\build\WordCloud4\warn-WordCloud4.txt
22469 INFO: Graph cross-reference written to E:\My python\wordcloud\build\WordCloud4\xref-WordCloud4.html
22529 INFO: checking PYZ
22529 INFO: Building PYZ because PYZ-00.toc is non existent
22530 INFO: Building PYZ (ZlibArchive) E:\My python\wordcloud\build\WordCloud4\PYZ-00.pyz
23792 INFO: Building PYZ (ZlibArchive) E:\My python\wordcloud\build\WordCloud4\PYZ-00.pyz completed successfully.
23828 INFO: checking PKG
23829 INFO: Building PKG because PKG-00.toc is non existent
23830 INFO: Building PKG (CArchive) PKG-00.pkg
41758 INFO: Building PKG (CArchive) PKG-00.pkg completed successfully.
41769 INFO: Bootloader c:\users\31209\appdata\local\programs\python\python37\lib\site-packages\PyInstaller\bootloader\Windows-64bit\run.exe
41769 INFO: checking EXE
41770 INFO: Building EXE because EXE-00.toc is non existent
41770 INFO: Building EXE from EXE-00.toc
41771 INFO: Appending archive to EXE E:\My python\wordcloud\dist\WordCloud4.exe
42306 INFO: Building EXE from EXE-00.toc completed successfully.
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

 楼主| 发表于 2019-8-11 17:36:05 | 显示全部楼层
这样生成的exe打开后黑框一闪而过,自动关闭
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2026-1-17 11:52

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表