|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
本帖最后由 cai302 于 2022-2-19 09:24 编辑
我之前用的是Python3.5版本,运行和打包exe一个代码都正常。前天因为需要用到一个库,升级到3.7版本。然后同时把所有库都升级到相应版本。在pycharm运行代码都正常了。但是打包exe的时候出现一大堆错误信息。经测试,所有的代码都无法打包了,错误信息都一样。。希望论坛的高手帮指点一下,谢谢!。本人是一名初学者。打包时错误信息如下:
810 INFO: PyInstaller: 4.9
810 INFO: Python: 3.7.2
811 INFO: Platform: Windows-7-6.1.7601-SP1
812 INFO: wrote D:\(20211201)账号.spec
815 INFO: UPX is not available.
816 INFO: Extending PYTHONPATH with paths
['D:\\PYTHON']
1847 INFO: checking Analysis
1888 INFO: Building because Analysis-00.toc is bad
1888 INFO: Initializing module dependency graph...
1895 INFO: Caching module graph hooks...
1908 WARNING: Several hooks defined for module 'accessible_output2'. Please take care they do not conflict.
1908 WARNING: Several hooks defined for module 'adios'. Please take care they do not conflict.
1910 WARNING: Several hooks defined for module 'aliyunsdkcore'. Please take care they do not conflict.
1911 WARNING: Several hooks defined for module 'amazonproduct'. Please take care they do not conflict.
1911 WARNING: Several hooks defined for module 'appdirs'. Please take care they do not conflict.
1911 WARNING: Several hooks defined for module 'appy.pod'. Please take care they do not conflict.
1913 WARNING: Several hooks defined for module 'astroid'. Please take care they do not conflict.
1913 WARNING: Several hooks defined for module 'astropy'. Please take care they do not conflict.
1913 WARNING: Several hooks defined for module 'bacon'. Please take care they do not conflict.
1913 WARNING: Several hooks defined for module 'bokeh'. Please take care they do not conflict.
1914 WARNING: Several hooks defined for module 'boto'. Please take care they do not conflict.
1914 WARNING: Several hooks defined for module 'boto3'. Please take care they do not conflict.
1914 WARNING: Several hooks defined for module 'botocore'. Please take care they do not conflict.
1915 WARNING: Several hooks defined for module 'BTrees'. Please take care they do not conflict.
1915 WARNING: Several hooks defined for module 'certifi'. Please take care they do not conflict.
1915 WARNING: Several hooks defined for module 'clr'. Please take care they do not conflict.
1915 WARNING: Several hooks defined for module 'countrycode'. Please take care they do not conflict.
1916 WARNING: Several hooks defined for module 'Crypto'. Please take care they do not conflict.
1916 WARNING: Several hooks defined for module 'Cryptodome'. Please take care they do not conflict.
1916 WARNING: Several hooks defined for module 'cryptography'. Please take care they do not conflict.
1916 WARNING: Several hooks defined for module 'cv2'. Please take care they do not conflict.
1917 WARNING: Several hooks defined for module 'cx_Oracle'. Please take care they do not conflict.
1917 WARNING: Several hooks defined for module 'cytoolz.itertoolz'. Please take care they do not conflict.
1917 WARNING: Several hooks defined for module 'dateparser.utils.strptime'. Please take care they do not conflict.
1917 WARNING: Several hooks defined for module 'dclab'. Please take care they do not conflict.
1918 WARNING: Several hooks defined for module 'distorm3'. Please take care they do not conflict.
1918 WARNING: Several hooks defined for module 'dns.rdata'. Please take care they do not conflict.
1918 WARNING: Several hooks defined for module 'docutils'. Please take care they do not conflict.
1919 WARNING: Several hooks defined for module 'docx'. Please take care they do not conflict.
1919 WARNING: Several hooks defined for module 'dynaconf'. Please take care they do not conflict.
1919 WARNING: Several hooks defined for module 'enchant'. Please take care they do not conflict.
1919 WARNING: Several hooks defined for module 'eth_abi'. Please take care they do not conflict.
1920 WARNING: Several hooks defined for module 'eth_account'. Please take care they do not conflict.
1920 WARNING: Several hooks defined for module 'eth_hash'. Please take care they do not conflict.
1920 WARNING: Several hooks defined for module 'eth_keyfile'. Please take care they do not conflict.
1920 WARNING: Several hooks defined for module 'eth_utils'. Please take care they do not conflict.
1920 WARNING: Several hooks defined for module 'faker'. Please take care they do not conflict.
1921 WARNING: Several hooks defined for module 'flex'. Please take care they do not conflict.
1921 WARNING: Several hooks defined for module 'fmpy'. Please take care they do not conflict.
1921 WARNING: Several hooks defined for module 'gadfly'. Please take care they do not conflict.
1922 WARNING: Several hooks defined for module 'gooey'. Please take care they do not conflict.
1922 WARNING: Several hooks defined for module 'google.api_core'. Please take care they do not conflict.
1922 WARNING: Several hooks defined for module 'google.cloud'. Please take care they do not conflict.
1922 WARNING: Several hooks defined for module 'google.cloud.storage'. Please take care they do not conflict.
1923 WARNING: Several hooks defined for module 'google.cloud.translate'. Please take care they do not conflict.
1923 WARNING: Several hooks defined for module 'gst._gst'. Please take care they do not conflict.
1924 WARNING: Several hooks defined for module 'gtk'. Please take care they do not conflict.
1924 WARNING: Several hooks defined for module 'h5py'. Please take care they do not conflict.
1924 WARNING: Several hooks defined for module 'httplib2'. Please take care they do not conflict.
1924 WARNING: Several hooks defined for module 'imageio'. Please take care they do not conflict.
1924 WARNING: Several hooks defined for module 'imageio_ffmpeg'. Please take care they do not conflict.
1924 WARNING: Several hooks defined for module 'IPython'. Please take care they do not conflict.
1924 WARNING: Several hooks defined for module 'jedi'. Please take care they do not conflict.
1926 WARNING: Several hooks defined for module 'jinja2'. Please take care they do not conflict.
1926 WARNING: Several hooks defined for module 'jira'. Please take care they do not conflict.
1926 WARNING: Several hooks defined for module 'jsonpath_rw_ext'. Please take care they do not conflict.
1927 WARNING: Several hooks defined for module 'jsonschema'. Please take care they do not conflict.
1927 WARNING: Several hooks defined for module 'jupyterlab'. Please take care they do not conflict.
1927 WARNING: Several hooks defined for module 'kinterbasdb'. Please take care they do not conflict.
1927 WARNING: Several hooks defined for module 'langcodes'. Please take care they do not conflict.
1927 WARNING: Several hooks defined for module 'lensfunpy'. Please take care they do not conflict.
1927 WARNING: Several hooks defined for module 'libaudioverse'. Please take care they do not conflict.
1927 WARNING: Several hooks defined for module 'llvmlite'. Please take care they do not conflict.
1927 WARNING: Several hooks defined for module 'logilab'. Please take care they do not conflict.
1927 WARNING: Several hooks defined for module 'lxml.etree'. Please take care they do not conflict.
1928 WARNING: Several hooks defined for module 'lxml.isoschematron'. Please take care they do not conflict.
1928 WARNING: Several hooks defined for module 'lxml.objectify'. Please take care they do not conflict.
1928 WARNING: Several hooks defined for module 'lz4'. Please take care they do not conflict.
1930 WARNING: Several hooks defined for module 'magic'. Please take care they do not conflict.
1932 WARNING: Several hooks defined for module 'mako.codegen'. Please take care they do not conflict.
1932 WARNING: Several hooks defined for module 'markdown'. Please take care they do not conflict.
1934 WARNING: Several hooks defined for module 'migrate'. Please take care they do not conflict.
1934 WARNING: Several hooks defined for module 'mpl_toolkits.basemap'. Please take care they do not conflict.
1934 WARNING: Several hooks defined for module 'nacl'. Please take care they do not conflict.
1934 WARNING: Several hooks defined for module 'names'. Please take care they do not conflict.
1935 WARNING: Several hooks defined for module 'nanite'. Please take care they do not conflict.
1935 WARNING: Several hooks defined for module 'nbconvert'. Please take care they do not conflict.
1935 WARNING: Several hooks defined for module 'nbdime'. Please take care they do not conflict.
1936 WARNING: Several hooks defined for module 'nbformat'. Please take care they do not conflict.
1936 WARNING: Several hooks defined for module 'ncclient'. Please take care they do not conflict.
1936 WARNING: Several hooks defined for module 'netCDF4'. Please take care they do not conflict.
1937 WARNING: Several hooks defined for module 'nltk'. Please take care they do not conflict.
1937 WARNING: Several hooks defined for module 'notebook'. Please take care they do not conflict.
1937 WARNING: Several hooks defined for module 'numba'. Please take care they do not conflict.
1938 WARNING: Several hooks defined for module 'OpenGL'. Please take care they do not conflict.
1938 WARNING: Several hooks defined for module 'OpenGL_accelerate'. Please take care they do not conflict.
1938 WARNING: Several hooks defined for module 'openpyxl'. Please take care they do not conflict.
1939 WARNING: Several hooks defined for module 'osgeo'. Please take care they do not conflict.
1939 WARNING: Several hooks defined for module 'paste.exceptions.reporter'. Please take care they do not conflict.
1939 WARNING: Several hooks defined for module 'patsy'. Please take care they do not conflict.
1940 WARNING: Several hooks defined for module 'pendulum'. Please take care they do not conflict.
1940 WARNING: Several hooks defined for module 'phonenumbers'. Please take care they do not conflict.
1940 WARNING: Several hooks defined for module 'pint'. Please take care they do not conflict.
1940 WARNING: Several hooks defined for module 'pinyin'. Please take care they do not conflict.
1940 WARNING: Several hooks defined for module 'psychopy'. Please take care they do not conflict.
1940 WARNING: Several hooks defined for module 'psycopg2'. Please take care they do not conflict.
1940 WARNING: Several hooks defined for module 'pubsub.core'. Please take care they do not conflict.
1940 WARNING: Several hooks defined for module 'pycountry'. Please take care they do not conflict.
1942 WARNING: Several hooks defined for module 'pycparser'. Please take care they do not conflict.
1942 WARNING: Several hooks defined for module 'pyexcelerate.Writer'. Please take care they do not conflict.
1942 WARNING: Several hooks defined for module 'pygame'. Please take care they do not conflict.
1942 WARNING: Several hooks defined for module 'pylint'. Please take care they do not conflict.
1942 WARNING: Several hooks defined for module 'pymssql'. Please take care they do not conflict.
1943 WARNING: Several hooks defined for module 'pyodbc'. Please take care they do not conflict.
1943 WARNING: Several hooks defined for module 'pyopencl'. Please take care they do not conflict.
1943 WARNING: Several hooks defined for module 'pyproj'. Please take care they do not conflict.
1944 WARNING: Several hooks defined for module 'pytest'. Please take care they do not conflict.
1946 WARNING: Several hooks defined for module 'pythoncom'. Please take care they do not conflict.
1946 WARNING: Several hooks defined for module 'pyttsx'. Please take care they do not conflict.
1946 WARNING: Several hooks defined for module 'pywintypes'. Please take care they do not conflict.
1946 WARNING: Several hooks defined for module 'pywt'. Please take care they do not conflict.
1947 WARNING: Several hooks defined for module 'radicale'. Please take care they do not conflict.
1947 WARNING: Several hooks defined for module 'raven'. Please take care they do not conflict.
1947 WARNING: Several hooks defined for module 'rawpy'. Please take care they do not conflict.
1947 WARNING: Several hooks defined for module 'rdflib'. Please take care they do not conflict.
1947 WARNING: Several hooks defined for module 'redmine'. Please take care they do not conflict.
1947 WARNING: Several hooks defined for module 'regex'. Please take care they do not conflict.
1947 WARNING: Several hooks defined for module 'reportlab.lib.utils'. Please take care they do not conflict.
1947 WARNING: Several hooks defined for module 'reportlab.pdfbase._fontdata'. Please take care they do not conflict.
1947 WARNING: Several hooks defined for module 'resampy'. Please take care they do not conflict.
1948 WARNING: Several hooks defined for module 'selenium'. Please take care they do not conflict.
1948 WARNING: Several hooks defined for module 'shapely'. Please take care they do not conflict.
1948 WARNING: Several hooks defined for module 'skimage.transform'. Please take care they do not conflict.
1948 WARNING: Several hooks defined for module 'sklearn.metrics.cluster'. Please take care they do not conflict.
1950 WARNING: Several hooks defined for module 'soundfile'. Please take care they do not conflict.
1950 WARNING: Several hooks defined for module 'sound_lib'. Please take care they do not conflict.
1950 WARNING: Several hooks defined for module 'speech_recognition'. Please take care they do not conflict.
1950 WARNING: Several hooks defined for module 'storm.database'. Please take care they do not conflict.
1951 WARNING: Several hooks defined for module 'tables'. Please take care they do not conflict.
1951 WARNING: Several hooks defined for module 'tcod'. Please take care they do not conflict.
1951 WARNING: Several hooks defined for module 'textdistance'. Please take care they do not conflict.
1951 WARNING: Several hooks defined for module 'torch'. Please take care they do not conflict.
1952 WARNING: Several hooks defined for module 'ttkthemes'. Please take care they do not conflict.
1953 WARNING: Several hooks defined for module 'u1db'. Please take care they do not conflict.
1955 WARNING: Several hooks defined for module 'umap'. Please take care they do not conflict.
1956 WARNING: Several hooks defined for module 'unidecode'. Please take care they do not conflict.
1956 WARNING: Several hooks defined for module 'uniseg'. Please take care they do not conflict.
1957 WARNING: Several hooks defined for module 'usb'. Please take care they do not conflict.
1957 WARNING: Several hooks defined for module 'uvloop'. Please take care they do not conflict.
1960 WARNING: Several hooks defined for module 'vtkpython'. Please take care they do not conflict.
1960 WARNING: Several hooks defined for module 'wavefile'. Please take care they do not conflict.
1960 WARNING: Several hooks defined for module 'weasyprint'. Please take care they do not conflict.
1960 WARNING: Several hooks defined for module 'web3'. Please take care they do not conflict.
1962 WARNING: Several hooks defined for module 'webview'. Please take care they do not conflict.
1962 WARNING: Several hooks defined for module 'win32com'. Please take care they do not conflict.
1963 WARNING: Several hooks defined for module 'wx.lib.activex'. Please take care they do not conflict.
1963 WARNING: Several hooks defined for module 'wx.lib.pubsub'. Please take care they do not conflict.
1963 WARNING: Several hooks defined for module 'wx.xrc'. Please take care they do not conflict.
1963 WARNING: Several hooks defined for module 'Xlib'. Please take care they do not conflict.
1964 WARNING: Several hooks defined for module 'xml.dom.html.HTMLDocument'. Please take care they do not conflict.
1964 WARNING: Several hooks defined for module 'xml.sax.saxexts'. Please take care they do not conflict.
1964 WARNING: Several hooks defined for module 'xsge_gui'. Please take care they do not conflict.
1964 WARNING: Several hooks defined for module 'zeep'. Please take care they do not conflict.
1966 WARNING: Several hooks defined for module 'zmq'. Please take care they do not conflict.
1966 WARNING: Several hooks defined for module '_mssql'. Please take care they do not conflict.
1966 WARNING: Several hooks defined for module '_mysql'. Please take care they do not conflict.
1968 WARNING: Several hooks defined for module 'win32com'. Please take care they do not conflict.
1974 INFO: Analyzing base_library.zip ...
7971 INFO: Caching module dependency graph...
8293 INFO: running Analysis Analysis-00.toc
8318 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of final executable
required by d:\programs\python\python35-32\python.exe
8648 INFO: Analyzing D:\PYTHON\(20211201)账号.py
11142 INFO: Processing pre-find module path hook distutils from 'd:\\programs\\python\\python35-32\\lib\\site-packages\\PyInstaller\\hooks\\pre_find_module_path\\hook-distutil
s.py'.
11143 INFO: distutils: retargeting to non-venv dir 'd:\\programs\\python\\python35-32\\lib'
14554 INFO: Processing pre-find module path hook site from 'd:\\programs\\python\\python35-32\\lib\\site-packages\\PyInstaller\\hooks\\pre_find_module_path\\hook-site.py'.
14555 INFO: site: retargeting to fake-dir 'd:\\programs\\python\\python35-32\\lib\\site-packages\\PyInstaller\\fake-modules'
34289 INFO: Processing pre-safe import module hook win32com from 'd:\\programs\\python\\python35-32\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\pre_safe_import_mod
ule\\hook-win32com.py'.
34536 INFO: Processing pre-safe import module hook win32com from 'd:\\programs\\python\\python35-32\\lib\\site-packages\\PyInstaller\\hooks\\pre_safe_import_module\\hook-win32
com.py'.
48727 INFO: Processing pre-safe import module hook six.moves from 'd:\\programs\\python\\python35-32\\lib\\site-packages\\PyInstaller\\hooks\\pre_safe_import_module\\hook-six.
moves.py'.
70672 INFO: Processing pre-safe import module hook urllib3.packages.six.moves from 'd:\\programs\\python\\python35-32\\lib\\site-packages\\PyInstaller\\hooks\\pre_safe_import_
module\\hook-urllib3.packages.six.moves.py'.
76025 INFO: Processing module hooks...
76025 INFO: Loading module hook 'hook-certifi.py' from 'd:\\programs\\python\\python35-32\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
76036 INFO: Loading module hook 'hook-cryptography.py' from 'd:\\programs\\python\\python35-32\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
76686 INFO: Loading module hook 'hook-cv2.py' from 'd:\\programs\\python\\python35-32\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
87138 INFO: Loading module hook 'hook-lxml.etree.py' from 'd:\\programs\\python\\python35-32\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
87140 INFO: Loading module hook 'hook-lxml.py' from 'd:\\programs\\python\\python35-32\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
88572 INFO: Loading module hook 'hook-py.py' from 'd:\\programs\\python\\python35-32\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
89125 INFO: Loading module hook 'hook-pycparser.py' from 'd:\\programs\\python\\python35-32\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
89126 INFO: Loading module hook 'hook-pytest.py' from 'd:\\programs\\python\\python35-32\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
89862 INFO: Loading module hook 'hook-pythoncom.py' from 'd:\\programs\\python\\python35-32\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
90868 INFO: Loading module hook 'hook-pywintypes.py' from 'd:\\programs\\python\\python35-32\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
91897 INFO: Loading module hook 'hook-win32com.py' from 'd:\\programs\\python\\python35-32\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
92124 INFO: Loading module hook 'hook-pygame.py' from 'd:\\programs\\python\\python35-32\\lib\\site-packages\\pygame\\__pyinstaller'...
pygame 2.1.2 (SDL 2.0.18, Python 3.7.2)
Hello from the pygame community. https://www.pygame.org/contribute.html
92381 INFO: Loading module hook 'hook-difflib.py' from 'd:\\programs\\python\\python35-32\\lib\\site-packages\\PyInstaller\\hooks'...
92388 INFO: Loading module hook 'hook-distutils.py' from 'd:\\programs\\python\\python35-32\\lib\\site-packages\\PyInstaller\\hooks'...
92388 INFO: Loading module hook 'hook-distutils.util.py' from 'd:\\programs\\python\\python35-32\\lib\\site-packages\\PyInstaller\\hooks'...
92396 INFO: Loading module hook 'hook-encodings.py' from 'd:\\programs\\python\\python35-32\\lib\\site-packages\\PyInstaller\\hooks'...
92660 INFO: Loading module hook 'hook-heapq.py' from 'd:\\programs\\python\\python35-32\\lib\\site-packages\\PyInstaller\\hooks'...
92667 INFO: Loading module hook 'hook-importlib_metadata.py' from 'd:\\programs\\python\\python35-32\\lib\\site-packages\\PyInstaller\\hooks'...
92670 INFO: Loading module hook 'hook-lib2to3.py' from 'd:\\programs\\python\\python35-32\\lib\\site-packages\\PyInstaller\\hooks'...
92876 INFO: Loading module hook 'hook-matplotlib.backends.py' from 'd:\\programs\\python\\python35-32\\lib\\site-packages\\PyInstaller\\hooks'...
94348 INFO: Matplotlib backend "GTK3Agg": ignored
backend Gtk3Agg requires cairo
95095 INFO: Matplotlib backend "GTK3Cairo": ignored
cairo backend requires that pycairo>=1.11.0 or cairocffi is installed
95868 INFO: Matplotlib backend "GTK4Agg": ignored
backend Gtk4Agg requires cairo
96620 INFO: Matplotlib backend "GTK4Cairo": ignored
cairo backend requires that pycairo>=1.11.0 or cairocffi is installed
97365 INFO: Matplotlib backend "MacOSX": ignored
cannot import name '_macosx' from 'matplotlib.backends' (d:\programs\python\python35-32\lib\site-packages\matplotlib\backends\__init__.py)
98095 INFO: Matplotlib backend "nbAgg": ignored
No module named 'IPython'
98834 INFO: Matplotlib backend "QtAgg": ignored
Failed to import any qt binding
99599 INFO: Matplotlib backend "QtCairo": ignored
cairo backend requires that pycairo>=1.11.0 or cairocffi is installed
100335 INFO: Matplotlib backend "Qt5Agg": ignored
Failed to import any qt binding
101090 INFO: Matplotlib backend "Qt5Cairo": ignored
cairo backend requires that pycairo>=1.11.0 or cairocffi is installed
102803 INFO: Matplotlib backend "TkAgg": added
104522 INFO: Matplotlib backend "TkCairo": ignored
cairo backend requires that pycairo>=1.11.0 or cairocffi is installed
105250 INFO: Matplotlib backend "WebAgg": ignored
Traceback (most recent call last):
File "d:\programs\python\python35-32\lib\site-packages\matplotlib\backends\backend_webagg.py", line 27, in <module>
import tornado
ModuleNotFoundError: No module named 'tornado'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<string>", line 12, in <module>
File "d:\programs\python\python35-32\lib\site-packages\matplotlib\backends\backend_webagg.py", line 29, in <module>
raise RuntimeError("The WebAgg backend requires Tornado.") from err
RuntimeError: The WebAgg backend requires Tornado.
106928 INFO: Matplotlib backend "WX": ignored
No module named 'wx'
107702 INFO: Matplotlib backend "WXAgg": ignored
No module named 'wx'
108444 INFO: Matplotlib backend "WXCairo": ignored
No module named 'wx'
109413 INFO: Matplotlib backend "agg": added
110144 INFO: Matplotlib backend "cairo": ignored
cairo backend requires that pycairo>=1.11.0 or cairocffi is installed
111987 INFO: Matplotlib backend "pdf": added
113839 INFO: Matplotlib backend "pgf": added
114976 INFO: Matplotlib backend "ps": added
115978 INFO: Matplotlib backend "svg": added
117656 INFO: Matplotlib backend "template": added
123083 INFO: Loading module hook 'hook-matplotlib.py' from 'd:\\programs\\python\\python35-32\\lib\\site-packages\\PyInstaller\\hooks'...
123834 INFO: Loading module hook 'hook-multiprocessing.util.py' from 'd:\\programs\\python\\python35-32\\lib\\site-packages\\PyInstaller\\hooks'...
123838 INFO: Import to be excluded not found: 'test'
123839 INFO: Loading module hook 'hook-numpy.core.py' from 'd:\\programs\\python\\python35-32\\lib\\site-packages\\PyInstaller\\hooks'...
123840 INFO: Loading module hook 'hook-numpy.py' from 'd:\\programs\\python\\python35-32\\lib\\site-packages\\PyInstaller\\hooks'...
123951 INFO: Import to be excluded not found: 'f2py'
124003 INFO: Loading module hook 'hook-numpy._pytesttester.py' from 'd:\\programs\\python\\python35-32\\lib\\site-packages\\PyInstaller\\hooks'...
124012 INFO: Loading module hook 'hook-packaging.py' from 'd:\\programs\\python\\python35-32\\lib\\site-packages\\PyInstaller\\hooks'...
124013 INFO: Loading module hook 'hook-pandas.io.formats.style.py' from 'd:\\programs\\python\\python35-32\\lib\\site-packages\\PyInstaller\\hooks'...
124490 INFO: Loading module hook 'hook-pandas.plotting.py' from 'd:\\programs\\python\\python35-32\\lib\\site-packages\\PyInstaller\\hooks'...
124916 INFO: Loading module hook 'hook-pandas.py' from 'd:\\programs\\python\\python35-32\\lib\\site-packages\\PyInstaller\\hooks'...
125868 INFO: Loading module hook 'hook-pickle.py' from 'd:\\programs\\python\\python35-32\\lib\\site-packages\\PyInstaller\\hooks'...
125876 INFO: Loading module hook 'hook-PIL.Image.py' from 'd:\\programs\\python\\python35-32\\lib\\site-packages\\PyInstaller\\hooks'...
126455 INFO: Loading module hook 'hook-PIL.ImageFilter.py' from 'd:\\programs\\python\\python35-32\\lib\\site-packages\\PyInstaller\\hooks'...
126462 INFO: Loading module hook 'hook-PIL.py' from 'd:\\programs\\python\\python35-32\\lib\\site-packages\\PyInstaller\\hooks'...
126494 INFO: Loading module hook 'hook-PIL.SpiderImagePlugin.py' from 'd:\\programs\\python\\python35-32\\lib\\site-packages\\PyInstaller\\hooks'...
126500 INFO: Loading module hook 'hook-pkg_resources.py' from 'd:\\programs\\python\\python35-32\\lib\\site-packages\\PyInstaller\\hooks'...
129384 WARNING: Hidden import "pkg_resources.py2_warn" not found!
129386 WARNING: Hidden import "pkg_resources.markers" not found!
129394 INFO: Loading module hook 'hook-pydoc.py' from 'd:\\programs\\python\\python35-32\\lib\\site-packages\\PyInstaller\\hooks'...
Traceback (most recent call last):
File "d:\programs\python\python35-32\lib\site-packages\PyInstaller\depend\imphook.py", line 361, in _load_hook_module
self._hook_module = importlib_load_source(self.hook_module_name, self.hook_filename)
File "d:\programs\python\python35-32\lib\site-packages\PyInstaller\compat.py", line 606, in importlib_load_source
return mod_loader.load_module()
File "<frozen importlib._bootstrap_external>", line 407, in _check_name_wrapper
File "<frozen importlib._bootstrap_external>", line 907, in load_module
File "<frozen importlib._bootstrap_external>", line 732, in load_module
File "<frozen importlib._bootstrap>", line 265, in _load_module_shim
File "<frozen importlib._bootstrap>", line 696, in _load
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "d:\programs\python\python35-32\lib\site-packages\PyInstaller\hooks\hook-pydoc.py", line 19, in <module>
from PyInstaller.compat import is_py2, modname_tkinter
ImportError: cannot import name 'is_py2' from 'PyInstaller.compat' (d:\programs\python\python35-32\lib\site-packages\PyInstaller\compat.py)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "d:\programs\python\python35-32\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "d:\programs\python\python35-32\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "D:\Programs\Python\Python35-32\Scripts\pyinstaller.exe\__main__.py", line 7, in <module>
File "d:\programs\python\python35-32\lib\site-packages\PyInstaller\__main__.py", line 124, in run
run_build(pyi_config, spec_file, **vars(args))
File "d:\programs\python\python35-32\lib\site-packages\PyInstaller\__main__.py", line 58, in run_build
PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
File "d:\programs\python\python35-32\lib\site-packages\PyInstaller\building\build_main.py", line 793, in main
build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
File "d:\programs\python\python35-32\lib\site-packages\PyInstaller\building\build_main.py", line 725, in build
exec(code, spec_namespace)
File "D:\(20211201)账号.spec", line 19, in <module>
noarchive=False)
File "d:\programs\python\python35-32\lib\site-packages\PyInstaller\building\build_main.py", line 277, in __init__
self.__postinit__()
File "d:\programs\python\python35-32\lib\site-packages\PyInstaller\building\datastruct.py", line 155, in __postinit__
self.assemble()
File "d:\programs\python\python35-32\lib\site-packages\PyInstaller\building\build_main.py", line 445, in assemble
self.graph.process_post_graph_hooks(self)
File "d:\programs\python\python35-32\lib\site-packages\PyInstaller\depend\analysis.py", line 326, in process_post_graph_hooks
module_hook.post_graph(analysis)
File "d:\programs\python\python35-32\lib\site-packages\PyInstaller\depend\imphook.py", line 398, in post_graph
self._load_hook_module()
File "d:\programs\python\python35-32\lib\site-packages\PyInstaller\depend\imphook.py", line 364, in _load_hook_module
raise ImportErrorWhenRunningHook(self.hook_module_name, self.hook_filename)
PyInstaller.exceptions.ImportErrorWhenRunningHook: Failed to import module __PyInstaller_hooks_0_pydoc required by hook for module d:\programs\python\python35-32\lib\site-pack
ages\PyInstaller\hooks\hook-pydoc.py. Please check whether module __PyInstaller_hooks_0_pydoc actually exists and whether the hook is compatible with your version of d:\progra
ms\python\python35-32\lib\site-packages\PyInstaller\hooks\hook-pydoc.py: You might want to read more about hooks in the manual and provide a pull-request to improve PyInstalle
r.
|
|