python可以封装成独立程序吗_把 python 文件打包成独立 exe 可执行文件

D:\WorkSpace3\EXAMPLE\AATT>pyinstaller -F AATT.py66 INFO: PyInstaller: 3.4

66 INFO: Python: 3.6.6

69 INFO: Platform: Windows-10-10.0.15063-SP075INFO: wrote D:\WorkSpace3\EXAMPLE\AATT\AATT.spec76 INFO: UPX is notavailable.77INFO: Extending PYTHONPATH with paths

['D:\\WorkSpace3\\EXAMPLE', 'D:\\WorkSpace3\\EXAMPLE\\AATT']78INFO: checking Analysis139INFO: Building because D:\WorkSpace3\EXAMPLE\AATT\MatplotlibWidget.py changed140INFO: Initializing module dependency graph...146INFO: Initializing module graph hooks...162INFO: Analyzing base_library.zip ...7629 INFO: running Analysis Analysis-00.toc7645 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of final executable

required by c:\program files\python36\python3.exe8745INFO: Caching module hooks...8751INFO: Analyzing D:\WorkSpace3\EXAMPLE\AATT\AATT.py8810 INFO: Processing pre-find module path hook distutils13023 INFO: Processing pre-find module path hook site13040 INFO: site: retargeting to fake-dir 'c:\\program files\\python36\\lib\\site-packages\\PyInstal

ler\\fake-modules'15677 INFO: Processing pre-safe importmodule hook setuptools.extern.six.moves22523 INFO: Processing pre-safe importmodule hook six.moves29522INFO: Loading module hooks...29523 INFO: Loading module hook "hook-distutils.py"...29537 INFO: Loading module hook "hook-encodings.py"...29786 INFO: Loading module hook "hook-lib2to3.py"...29797 INFO: Loading module hook "hook-matplotlib.backends.py"...36605 INFO: Matplotlib backend "GTK3Agg": ignored

cairo backend requires that cairocffior pycairo isinstalled37617 INFO: Matplotlib backend "GTK3Cairo": ignored

cairo backend requires that cairocffior pycairo isinstalled40003 INFO: Matplotlib backend "MacOSX": ignored

cannotimport name '_macosx'

40713 INFO: Matplotlib backend "nbAgg": ignored

No module named'IPython'

41389 INFO: Matplotlib backend "Qt4Agg": added41760 INFO: Matplotlib backend "Qt4Cairo": ignored

cairo backend requires that cairocffior pycairo isinstalled42306 INFO: Matplotlib backend "Qt5Agg": added42702 INFO: Matplotlib backend "Qt5Cairo": ignored

cairo backend requires that cairocffior pycairo isinstalled43278 INFO: Matplotlib backend "TkAgg": added43855 INFO: Matplotlib backend "TkCairo": ignored

cairo backend requires that cairocffior pycairo isinstalled44808 INFO: Matplotlib backend "WebAgg": ignored

Traceback (most recent call last):

File"", line 12, in File"c:\program files\python36\lib\site-packages\matplotlib\backends\backend_webagg.py", line 31,in

importtornado.web

File"c:\program files\python36\lib\site-packages\tornado\web.py", line 85, in

from tornado.concurrent importFuture, future_set_result_unless_cancelled

File"c:\program files\python36\lib\site-packages\tornado\concurrent.py", line 43, in

from concurrent importfutures

File"c:\program files\python36\lib\site-packages\concurrent\futures\__init__.py", line 8, in

ule>

from concurrent.futures._base import(FIRST_COMPLETED,

File"c:\program files\python36\lib\site-packages\concurrent\futures\_base.py", line 381

raiseexception_type, self._exception, self._traceback^SyntaxError: invalid syntax45306 INFO: Matplotlib backend "WX": ignored

No module named'wx'

45785 INFO: Matplotlib backend "WXAgg": ignored

No module named'wx'

46148 INFO: Matplotlib backend "WXCairo": ignored

No module named'wx'

46560 INFO: Matplotlib backend "agg": added46908 INFO: Matplotlib backend "cairo": ignored

cairo backend requires that cairocffior pycairo isinstalled47469 INFO: Matplotlib backend "pdf": added48029 INFO: Matplotlib backend "pgf": added48425 INFO: Matplotlib backend "ps": added48811 INFO: Matplotlib backend "svg": added49281 INFO: Matplotlib backend "template": added49994 INFO: Loading module hook "hook-matplotlib.py"...50413 INFO: Loading module hook "hook-numpy.core.py"...50506 INFO: Loading module hook "hook-numpy.py"...50511 INFO: Loading module hook "hook-PIL.Image.py"...51196 INFO: Loading module hook "hook-PIL.py"...51202 INFO: Excluding import 'PyQt4'

51204 INFO: Removing import of PyQt4 frommodule PIL.ImageQt51206 INFO: Import to be excluded not found: 'FixTk'

51206 INFO: Excluding import 'tkinter'

51208 INFO: Removing import of tkinter frommodule PIL.ImageTk51209 INFO: Excluding import 'PySide'

51211 INFO: Removing import of PySide frommodule PIL.ImageQt51212 INFO: Excluding import 'PyQt5'

51215 INFO: Removing import of PyQt5.QtGui frommodule PIL.ImageQt51215 INFO: Removing import of PyQt5.QtCore frommodule PIL.ImageQt51216 INFO: Loading module hook "hook-PIL.SpiderImagePlugin.py"...51224 INFO: Excluding import 'tkinter'

51226 INFO: Import to be excluded not found: 'FixTk'

51226 INFO: Loading module hook "hook-pkg_resources.py"...52083 INFO: Processing pre-safe importmodule hook win32com

Traceback (most recent call last):

File"", line 2, in ModuleNotFoundError: No module named'win32com'

52226 INFO: Processing pre-safe importmodule hook win32com

Traceback (most recent call last):

File"", line 2, in ModuleNotFoundError: No module named'win32com'

52369 INFO: Loading module hook "hook-pydoc.py"...52374 INFO: Loading module hook "hook-PyQt5.py"...52552 INFO: Loading module hook "hook-PyQt5.QtCore.py"...52669 INFO: Loading module hook "hook-PyQt5.QtGui.py"...52917 INFO: Loading module hook "hook-PyQt5.QtWidgets.py"...53373 INFO: Loading module hook "hook-setuptools.py"...54655 INFO: Loading module hook "hook-sysconfig.py"...54687 INFO: Loading module hook "hook-xml.dom.domreg.py"...54697 INFO: Loading module hook "hook-xml.py"...54706 INFO: Loading module hook "hook-_tkinter.py"...55076INFO: checking Tree55226INFO: checking Tree55406 INFO: Looking forctypes DLLs55446 INFO: Analyzing run-time hooks ...55454 INFO: Including run-time hook 'pyi_rth_multiprocessing.py'

55476 INFO: Including run-time hook 'pyi_rth__tkinter.py'

55492 INFO: Including run-time hook 'pyi_rth_pkgres.py'

55497 INFO: Including run-time hook 'pyi_rth_qt5.py'

55505 INFO: Including run-time hook 'pyi_rth_mplconfig.py'

55511 INFO: Including run-time hook 'pyi_rth_mpldata.py'

55534 INFO: Looking fordynamic libraries70686 INFO: Looking foreggs70686INFO: Using Python library c:\program files\python36\python36.dll70686INFO: Found binding redirects:

[]70724 INFO: Warnings written to D:\WorkSpace3\EXAMPLE\AATT\build\AATT\warn-AATT.txt70896 INFO: Graph cross-reference written to D:\WorkSpace3\EXAMPLE\AATT\build\AATT\xref-AATT.html71040INFO: checking PYZ71090INFO: Building because toc changed71091 INFO: Building PYZ (ZlibArchive) D:\WorkSpace3\EXAMPLE\AATT\build\AATT\PYZ-00.pyz73071 INFO: Building PYZ (ZlibArchive) D:\WorkSpace3\EXAMPLE\AATT\build\AATT\PYZ-00.pyz completed su

ccessfully.73109INFO: checking PKG73149INFO: Building because toc changed73149 INFO: Building PKG (CArchive) PKG-00.pkg74290WARNING: One binary added with two internal names.74291 WARNING: ('libGLESv2.dll','C:\\program'

'files\\python36\\lib\\site-packages\\PyQt5\\Qt\\bin\\libGLESv2.dll','BINARY')74291WARNING: was placed previously at74292 WARNING: ('PyQt5\\Qt\\bin\\libGLESv2.dll','C:\\program'

'files\\python36\\lib\\site-packages\\PyQt5\\Qt\\bin\\libGLESv2.dll','BINARY')108230 INFO: Building PKG (CArchive) PKG-00.pkg completed successfully.108293 INFO: Bootloader c:\program files\python36\lib\site-packages\PyInstaller\bootloader\Windows-64bit\run.exe108293INFO: checking EXE108327 INFO: Rebuilding EXE-00.toc because AATT.exe missing108328 INFO: Building EXE from EXE-00.toc108329INFO: Appending archive to EXE D:\WorkSpace3\EXAMPLE\AATT\dist\AATT.exe110075 INFO: Building EXE from EXE-00.toc completed successfully.

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值