pyinstaller封装卡在142754 INFO: Building PKG (CArchive) PKG-00.pkg

代码中import了xlwings就会出现标题错误
卡在142754 INFO: Building PKG (CArchive) PKG-00.pkg

import xlwings as xw

如果有小可爱知道什么情况,求解^~^

完整过程如下

778 INFO: PyInstaller: 4.1
778 INFO: Python: 3.9.0
793 INFO: Platform: Windows-10-10.0.18362-SP0
795 INFO: wrote D:\Users\yang\Desktop\Technology\Demo\Python\text\ProMain_function.spec
804 INFO: UPX is not available.
807 INFO: Extending PYTHONPATH with paths
['D:\\Users\\yang\\Desktop\\Technology\\Demo\\Python\\text',
 'D:\\Users\\yang\\Desktop\\Technology\\Demo\\Python\\text']
973 INFO: checking Analysis
1020 INFO: Building because D:\Users\yang\Desktop\Technology\Demo\Python\text\ProMain_function.py changed
1020 INFO: Initializing module dependency graph...
1029 INFO: Caching module graph hooks...
1084 INFO: Analyzing base_library.zip ...
8278 INFO: Processing pre-find module path hook distutils from 'd:\\program files\\python\\python3.9.0\\lib\\site-packages\\PyInstaller\\hooks\\pre_find_module_path\\hook-distutils.py'.
8280 INFO: distutils: retargeting to non-venv dir 'd:\\program files\\python\\python3.9.0\\lib'
15067 INFO: Caching module dependency graph...
15426 INFO: running Analysis Analysis-00.toc
15525 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of final executable
  required by d:\program files\python\python3.9.0\python.exe
15747 WARNING: lib not found: api-ms-win-core-path-l1-1-0.dll dependency of d:\program files\python\python3.9.0\python39.dll
16315 INFO: Analyzing D:\Users\yang\Desktop\Technology\Demo\Python\text\ProMain_function.py
17645 INFO: Processing pre-safe import module hook win32com from 'd:\\program files\\python\\python3.9.0\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\pre_safe_import_module\\hook-win32com.py'.
22401 INFO: Processing pre-find module path hook site from 'd:\\program files\\python\\python3.9.0\\lib\\site-packages\\PyInstaller\\hooks\\pre_find_module_path\\hook-site.py'.
22419 INFO: site: retargeting to fake-dir 'd:\\program files\\python\\python3.9.0\\lib\\site-packages\\PyInstaller\\fake-modules'
25819 INFO: Processing pre-safe import module hook setuptools.extern.six.moves from 'd:\\program files\\python\\python3.9.0\\lib\\site-packages\\PyInstaller\\hooks\\pre_safe_import_module\\hook-setuptools.extern.six.moves.py'.
36155 INFO: Processing pre-safe import module hook six.moves from 'd:\\program files\\python\\python3.9.0\\lib\\site-packages\\PyInstaller\\hooks\\pre_safe_import_module\\hook-six.moves.py'.
68896 INFO: Processing module hooks...
68897 INFO: Loading module hook 'hook-certifi.py' from 'd:\\program files\\python\\python3.9.0\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
68944 INFO: Loading module hook 'hook-jinja2.py' from 'd:\\program files\\python\\python3.9.0\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
68958 INFO: Loading module hook 'hook-lxml.etree.py' from 'd:\\program files\\python\\python3.9.0\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
68970 INFO: Loading module hook 'hook-lxml.py' from 'd:\\program files\\python\\python3.9.0\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
70027 INFO: Loading module hook 'hook-openpyxl.py' from 'd:\\program files\\python\\python3.9.0\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
70670 INFO: Loading module hook 'hook-pythoncom.py' from 'd:\\program files\\python\\python3.9.0\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
71495 INFO: Loading module hook 'hook-pywintypes.py' from 'd:\\program files\\python\\python3.9.0\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
72324 INFO: Loading module hook 'hook-win32com.py' from 'd:\\program files\\python\\python3.9.0\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
72327 INFO: Loading module hook 'hook-win32ctypes.core.py' from 'd:\\program files\\python\\python3.9.0\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
72937 INFO: Loading module hook 'hook-difflib.py' from 'd:\\program files\\python\\python3.9.0\\lib\\site-packages\\PyInstaller\\hooks'...
72952 INFO: Excluding import of doctest from module difflib
72953 INFO: Loading module hook 'hook-distutils.py' from 'd:\\program files\\python\\python3.9.0\\lib\\site-packages\\PyInstaller\\hooks'...
72972 INFO: Loading module hook 'hook-distutils.util.py' from 'd:\\program files\\python\\python3.9.0\\lib\\site-packages\\PyInstaller\\hooks'...
72979 INFO: Excluding import of lib2to3.refactor from module distutils.util
72979 INFO: Loading module hook 'hook-encodings.py' from 'd:\\program files\\python\\python3.9.0\\lib\\site-packages\\PyInstaller\\hooks'...
73214 INFO: Loading module hook 'hook-heapq.py' from 'd:\\program files\\python\\python3.9.0\\lib\\site-packages\\PyInstaller\\hooks'...
73222 INFO: Excluding import of doctest from module heapq
73223 INFO: Loading module hook 'hook-lib2to3.py' from 'd:\\program files\\python\\python3.9.0\\lib\\site-packages\\PyInstaller\\hooks'...
73466 INFO: Loading module hook 'hook-matplotlib.backends.py' from 'd:\\program files\\python\\python3.9.0\\lib\\site-packages\\PyInstaller\\hooks'...
78065 INFO:   Matplotlib backend "GTK3Agg": ignored
    backend Gtk3Agg requires cairo
78990 INFO:   Matplotlib backend "GTK3Cairo": ignored
    cairo backend requires that pycairo>=1.11.0 or cairocffi is installed
79895 INFO:   Matplotlib backend "MacOSX": ignored
    cannot import name '_macosx' from 'matplotlib.backends' (d:\program files\python\python3.9.0\lib\site-packages\matplotlib\backends\__init__.py)
80790 INFO:   Matplotlib backend "nbAgg": ignored
    No module named 'IPython'
<string>:12: MatplotlibDeprecationWarning:
The matplotlib.backends.backend_qt4agg backend was deprecated in Matplotlib 3.3 and will be removed two minor releases later.
83184 INFO:   Matplotlib backend "Qt4Agg": added
84126 INFO:   Matplotlib backend "Qt4Cairo": ignored
    cairo backend requires that pycairo>=1.11.0 or cairocffi is installed
85327 INFO:   Matplotlib backend "Qt5Agg": added
86275 INFO:   Matplotlib backend "Qt5Cairo": ignored
    cairo backend requires that pycairo>=1.11.0 or cairocffi is installed
88572 INFO:   Matplotlib backend "TkAgg": added
89859 INFO:   Matplotlib backend "TkCairo": ignored
    cairo backend requires that pycairo>=1.11.0 or cairocffi is installed
92287 INFO:   Matplotlib backend "WebAgg": added
93496 INFO:   Matplotlib backend "WX": ignored
    No module named 'wx'
94446 INFO:   Matplotlib backend "WXAgg": ignored
    No module named 'wx'
95350 INFO:   Matplotlib backend "WXCairo": ignored
    No module named 'wx'
96358 INFO:   Matplotlib backend "agg": added
97245 INFO:   Matplotlib backend "cairo": ignored
    cairo backend requires that pycairo>=1.11.0 or cairocffi is installed
98592 INFO:   Matplotlib backend "pdf": added
99914 INFO:   Matplotlib backend "pgf": added
100986 INFO:   Matplotlib backend "ps": added
102062 INFO:   Matplotlib backend "svg": added
103338 INFO:   Matplotlib backend "template": added
104385 INFO: Loading module hook 'hook-matplotlib.py' from 'd:\\program files\\python\\python3.9.0\\lib\\site-packages\\PyInstaller\\hooks'...
Traceback (most recent call last):
  File "<string>", line 1, in <module>
AttributeError: module 'matplotlib' has no attribute '_get_data_path'
105434 INFO: Loading module hook 'hook-multiprocessing.util.py' from 'd:\\program files\\python\\python3.9.0\\lib\\site-packages\\PyInstaller\\hooks'...
105458 INFO: Excluding import of test from module multiprocessing.util
105459 INFO: Excluding import of test.support from module multiprocessing.util
105460 INFO: Loading module hook 'hook-numpy.core.py' from 'd:\\program files\\python\\python3.9.0\\lib\\site-packages\\PyInstaller\\hooks'...
105724 INFO: Loading module hook 'hook-numpy.py' from 'd:\\program files\\python\\python3.9.0\\lib\\site-packages\\PyInstaller\\hooks'...
105728 INFO: Loading module hook 'hook-numpy._pytesttester.py' from 'd:\\program files\\python\\python3.9.0\\lib\\site-packages\\PyInstaller\\hooks'...
105735 INFO: Excluding import of pytest from module numpy._pytesttester
105735 INFO: Loading module hook 'hook-pandas.py' from 'd:\\program files\\python\\python3.9.0\\lib\\site-packages\\PyInstaller\\hooks'...
110278 INFO: Loading module hook 'hook-pickle.py' from 'd:\\program files\\python\\python3.9.0\\lib\\site-packages\\PyInstaller\\hooks'...
110285 INFO: Excluding import of argparse from module pickle
110285 INFO: Loading module hook 'hook-PIL.Image.py' from 'd:\\program files\\python\\python3.9.0\\lib\\site-packages\\PyInstaller\\hooks'...
111647 INFO: Loading module hook 'hook-PIL.ImageFilter.py' from 'd:\\program files\\python\\python3.9.0\\lib\\site-packages\\PyInstaller\\hooks'...
111668 INFO: Excluding import of numpy from module PIL.ImageFilter
111668 INFO: Loading module hook 'hook-PIL.py' from 'd:\\program files\\python\\python3.9.0\\lib\\site-packages\\PyInstaller\\hooks'...
111674 INFO: Import to be excluded not found: 'FixTk'
111678 INFO: Excluding import of tkinter from module PIL.ImageTk
111683 INFO: Excluding import of PyQt5.QtCore from module PIL.ImageQt
111684 INFO: Excluding import of PyQt5.QtGui from module PIL.ImageQt
111686 INFO: Loading module hook 'hook-PIL.SpiderImagePlugin.py' from 'd:\\program files\\python\\python3.9.0\\lib\\site-packages\\PyInstaller\\hooks'...
111690 INFO: Import to be excluded not found: 'FixTk'
111693 INFO: Loading module hook 'hook-pkg_resources.py' from 'd:\\program files\\python\\python3.9.0\\lib\\site-packages\\PyInstaller\\hooks'...
113461 WARNING: Hidden import "pkg_resources.py2_warn" not found!
113826 WARNING: Hidden import "pkg_resources.markers" not found!
113834 INFO: Excluding import of __main__ from module pkg_resources
113836 INFO: Loading module hook 'hook-PyQt5.py' from 'd:\\program files\\python\\python3.9.0\\lib\\site-packages\\PyInstaller\\hooks'...
114444 INFO: Loading module hook 'hook-PyQt5.QtCore.py' from 'd:\\program files\\python\\python3.9.0\\lib\\site-packages\\PyInstaller\\hooks'...
114786 INFO: Loading module hook 'hook-PyQt5.QtGui.py' from 'd:\\program files\\python\\python3.9.0\\lib\\site-packages\\PyInstaller\\hooks'...
115405 INFO: Loading module hook 'hook-PyQt5.QtWidgets.py' from 'd:\\program files\\python\\python3.9.0\\lib\\site-packages\\PyInstaller\\hooks'...
116334 INFO: Loading module hook 'hook-PySide2.py' from 'd:\\program files\\python\\python3.9.0\\lib\\site-packages\\PyInstaller\\hooks'...
118344 INFO: Loading module hook 'hook-PySide2.QtCore.py' from 'd:\\program files\\python\\python3.9.0\\lib\\site-packages\\PyInstaller\\hooks'...
118685 INFO: Loading module hook 'hook-PySide2.QtGui.py' from 'd:\\program files\\python\\python3.9.0\\lib\\site-packages\\PyInstaller\\hooks'...
119551 INFO: Loading module hook 'hook-PySide2.QtNetwork.py' from 'd:\\program files\\python\\python3.9.0\\lib\\site-packages\\PyInstaller\\hooks'...
120987 INFO: Loading module hook 'hook-PySide2.QtWidgets.py' from 'd:\\program files\\python\\python3.9.0\\lib\\site-packages\\PyInstaller\\hooks'...
122033 INFO: Loading module hook 'hook-pytz.py' from 'd:\\program files\\python\\python3.9.0\\lib\\site-packages\\PyInstaller\\hooks'...
122918 INFO: Loading module hook 'hook-qtawesome.py' from 'd:\\program files\\python\\python3.9.0\\lib\\site-packages\\PyInstaller\\hooks'...
122995 INFO: Loading module hook 'hook-setuptools.py' from 'd:\\program files\\python\\python3.9.0\\lib\\site-packages\\PyInstaller\\hooks'...
d:\program files\python\python3.9.0\lib\site-packages\setuptools\distutils_patch.py:25: UserWarning: Distutils was imported before Setuptools. This usage is discouraged and may exhibit undesirable behaviors or errors. Please use Setuptools' objects directly or at least import Setuptools first.
  warnings.warn(
124652 INFO: Excluding import of setuptools.py27compat from module setuptools.command.easy_install
124652 INFO: Excluding import of setuptools.py27compat from module setuptools.package_index
124653 INFO: Excluding import of setuptools.py27compat from module setuptools.depends
124658 INFO: Excluding import of setuptools.py33compat from module setuptools.package_index
124658 INFO: Excluding import of setuptools.py33compat from module setuptools.depends
124660 INFO: Loading module hook 'hook-sqlite3.py' from 'd:\\program files\\python\\python3.9.0\\lib\\site-packages\\PyInstaller\\hooks'...
125096 INFO: Loading module hook 'hook-sysconfig.py' from 'd:\\program files\\python\\python3.9.0\\lib\\site-packages\\PyInstaller\\hooks'...
125099 INFO: Loading module hook 'hook-xml.dom.domreg.py' from 'd:\\program files\\python\\python3.9.0\\lib\\site-packages\\PyInstaller\\hooks'...
125100 INFO: Loading module hook 'hook-xml.etree.cElementTree.py' from 'd:\\program files\\python\\python3.9.0\\lib\\site-packages\\PyInstaller\\hooks'...
125102 INFO: Loading module hook 'hook-xml.py' from 'd:\\program files\\python\\python3.9.0\\lib\\site-packages\\PyInstaller\\hooks'...
125103 INFO: Loading module hook 'hook-_tkinter.py' from 'd:\\program files\\python\\python3.9.0\\lib\\site-packages\\PyInstaller\\hooks'...
125680 INFO: checking Tree
126117 INFO: checking Tree
126462 INFO: checking Tree
126473 INFO: Loading module hook 'hook-lxml.isoschematron.py' from 'd:\\program files\\python\\python3.9.0\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
126508 INFO: Loading module hook 'hook-lxml.objectify.py' from 'd:\\program files\\python\\python3.9.0\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
126510 INFO: Loading module hook 'hook-packaging.py' from 'd:\\program files\\python\\python3.9.0\\lib\\site-packages\\PyInstaller\\hooks'...
126511 INFO: Loading module hook 'hook-setuptools.msvc.py' from 'd:\\program files\\python\\python3.9.0\\lib\\site-packages\\PyInstaller\\hooks'...
126517 INFO: Excluding import of numpy from module setuptools.msvc
126633 INFO: Looking for ctypes DLLs
126816 INFO: Analyzing run-time hooks ...
126835 INFO: Including run-time hook 'd:\\program files\\python\\python3.9.0\\lib\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth_multiprocessing.py'
126860 INFO: Including run-time hook 'd:\\program files\\python\\python3.9.0\\lib\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth_win32comgenpy.py'
126864 INFO: Including run-time hook 'd:\\program files\\python\\python3.9.0\\lib\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth_win32api.py'
126867 INFO: Including run-time hook 'd:\\program files\\python\\python3.9.0\\lib\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth_pkgres.py'
126874 INFO: Including run-time hook 'd:\\program files\\python\\python3.9.0\\lib\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth_pyside2.py'
126877 INFO: Including run-time hook 'd:\\program files\\python\\python3.9.0\\lib\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth__tkinter.py'
126881 INFO: Including run-time hook 'd:\\program files\\python\\python3.9.0\\lib\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth_mplconfig.py'
126886 INFO: Including run-time hook 'd:\\program files\\python\\python3.9.0\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\rthooks\\pyi_rth_certifi.py'
126891 INFO: Including run-time hook 'd:\\program files\\python\\python3.9.0\\lib\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth_pyqt5.py'
126934 INFO: Looking for dynamic libraries
131123 WARNING: lib not found: shiboken2.abi3.dll dependency of d:\program files\python\python3.9.0\lib\site-packages\PySide2\QtGui.pyd
131171 WARNING: lib not found: shiboken2.abi3.dll dependency of d:\program files\python\python3.9.0\lib\site-packages\PySide2\QtNetwork.pyd
131351 WARNING: lib not found: shiboken2.abi3.dll dependency of d:\program files\python\python3.9.0\lib\site-packages\PySide2\QtCore.pyd
131877 WARNING: lib not found: shiboken2.abi3.dll dependency of d:\program files\python\python3.9.0\lib\site-packages\PySide2\QtWidgets.pyd
136721 WARNING: lib not found: shiboken2.abi3.dll dependency of d:\program files\python\python3.9.0\lib\site-packages\PySide2\pyside2.abi3.dll
137077 INFO: Looking for eggs
137077 INFO: Using Python library d:\program files\python\python3.9.0\python39.dll
137079 INFO: Found binding redirects:
[]
137104 INFO: Warnings written to D:\Users\yang\Desktop\Technology\Demo\Python\text\build\ProMain_function\warn-ProMain_function.txt
137543 INFO: Graph cross-reference written to D:\Users\yang\Desktop\Technology\Demo\Python\text\build\ProMain_function\xref-ProMain_function.html
137761 INFO: checking PYZ
137794 INFO: Building because toc changed
137795 INFO: Building PYZ (ZlibArchive) D:\Users\yang\Desktop\Technology\Demo\Python\text\build\ProMain_function\PYZ-00.pyz
142635 INFO: Building PYZ (ZlibArchive) D:\Users\yang\Desktop\Technology\Demo\Python\text\build\ProMain_function\PYZ-00.pyz completed successfully.
142713 INFO: checking PKG
142753 INFO: Building because toc changed
142754 INFO: Building PKG (CArchive) PKG-00.pkg

主要报错是AttributeError: module 'matplotlib' has no attribute '_get_data_path',程序应该正常运行吧?或者将程序打包pyd文件也能实现加密