当我尝试编译 python 脚本时出现 Pyinstaller 错误

时间:2021-03-23 05:41:35

标签: python-3.x pyinstaller

我在 Mac OS Big Sur 上编译一些示例代码时遇到了一些问题。我安装了 setuptools 54.1,并通过 pip 安装了最新的 pyinstaller 开发版本。如果有人可以对以下输出有任何见解,那就太好了。 pyinstaller 版本为:5.0.dev0

编译器的输出:

gaurangsmacbookpro@Gaurangs-New-MacBook-Pro Face_Recognition % pyinstaller face_detect_compile.py
63 INFO: PyInstaller: 5.0.dev0
63 INFO: Python: 3.8.7
68 INFO: Platform: macOS-11.2.3-x86_64-i386-64bit
68 INFO: wrote /Users/gaurangsmacbookpro/Desktop/Gaurang/PYTHON_CODE/Face_Recognition/face_detect_compile.spec
71 INFO: UPX is not available.
72 INFO: Extending PYTHONPATH with paths
[’/Users/gaurangsmacbookpro/Desktop/Gaurang/PYTHON_CODE/Face_Recognition’,
‘/Users/gaurangsmacbookpro/Desktop/Gaurang/PYTHON_CODE/Face_Recognition’]
90 INFO: checking Analysis
90 INFO: Building Analysis because Analysis-00.toc is non existent
90 INFO: Initializing module dependency graph…
94 INFO: Caching module graph hooks…
99 WARNING: Several hooks defined for module ‘win32ctypes.core’. Please take care they do not conflict.
101 INFO: Analyzing base_library.zip …
2465 INFO: Processing pre-find module path hook distutils from ‘/usr/local/lib/python3.8/site-packages/PyInstaller/hooks/pre_find_module_path/hook-distutils.py’.
2466 INFO: distutils: retargeting to non-venv dir ‘/usr/local/Cellar/python@3.8/3.8.7_2/Frameworks/Python.framework/Versions/3.8/lib/python3.8’
4890 INFO: Caching module dependency graph…
5045 INFO: running Analysis Analysis-00.toc
5052 INFO: Analyzing /Users/gaurangsmacbookpro/Desktop/Gaurang/PYTHON_CODE/Face_Recognition/face_detect_compile.py
5990 INFO: Processing pre-find module path hook site from ‘/usr/local/lib/python3.8/site-packages/PyInstaller/hooks/pre_find_module_path/hook-site.py’.
5991 INFO: site: retargeting to fake-dir ‘/usr/local/lib/python3.8/site-packages/PyInstaller/fake-modules’
9412 INFO: Processing module hooks…
9412 INFO: Loading module hook ‘hook-pycparser.py’ from ‘/usr/local/lib/python3.8/site-packages/_pyinstaller_hooks_contrib/hooks/stdhooks’…
9413 INFO: Loading module hook ‘hook-cv2.py’ from ‘/usr/local/lib/python3.8/site-packages/_pyinstaller_hooks_contrib/hooks/stdhooks’…
9414 INFO: Loading module hook ‘hook-pkg_resources.py’ from ‘/usr/local/lib/python3.8/site-packages/PyInstaller/hooks’…
9690 INFO: Processing pre-safe import module hook win32com from ‘/usr/local/lib/python3.8/site-packages/_pyinstaller_hooks_contrib/hooks/pre_safe_import_module/hook-win32com.py’.
9921 WARNING: Hidden import “pkg_resources.py2_warn” not found!
10174 WARNING: Hidden import “pkg_resources.markers” not found!
10176 INFO: Excluding import of main from module pkg_resources
10176 INFO: Loading module hook ‘hook-scipy.py’ from ‘/usr/local/lib/python3.8/site-packages/PyInstaller/hooks’…
10177 INFO: Loading module hook ‘hook-xml.etree.cElementTree.py’ from ‘/usr/local/lib/python3.8/site-packages/PyInstaller/hooks’…
10177 INFO: Loading module hook ‘hook-lib2to3.py’ from ‘/usr/local/lib/python3.8/site-packages/PyInstaller/hooks’…
10195 INFO: Loading module hook ‘hook-_tkinter.py’ from ‘/usr/local/lib/python3.8/site-packages/PyInstaller/hooks’…
10308 INFO: checking Tree
10308 INFO: Building Tree because Tree-00.toc is non existent
10308 INFO: Building Tree Tree-00.toc
10323 INFO: checking Tree
10323 INFO: Building Tree because Tree-01.toc is non existent
10324 INFO: Building Tree Tree-01.toc
10387 INFO: checking Tree
10387 INFO: Building Tree because Tree-02.toc is non existent
10387 INFO: Building Tree Tree-02.toc
10389 INFO: Loading module hook ‘hook-encodings.py’ from ‘/usr/local/lib/python3.8/site-packages/PyInstaller/hooks’…
10446 INFO: Loading module hook ‘hook-PIL.ImageFilter.py’ from ‘/usr/local/lib/python3.8/site-packages/PyInstaller/hooks’…
10451 INFO: Excluding import of numpy from module PIL.ImageFilter
10451 INFO: Loading module hook ‘hook-distutils.util.py’ from ‘/usr/local/lib/python3.8/site-packages/PyInstaller/hooks’…
10453 INFO: Excluding import of lib2to3.refactor from module distutils.util
10453 INFO: Loading module hook ‘hook-PIL.py’ from ‘/usr/local/lib/python3.8/site-packages/PyInstaller/hooks’…
10457 INFO: Excluding import of PyQt5 from module PIL.ImageQt
10457 INFO: Import to be excluded not found: ‘FixTk’
10457 INFO: Loading module hook ‘hook-setuptools.py’ from ‘/usr/local/lib/python3.8/site-packages/PyInstaller/hooks’…
11013 INFO: Import to be excluded not found: ‘setuptools.py33compat’
11013 INFO: Import to be excluded not found: ‘setuptools.py27compat’
11013 INFO: Loading module hook ‘hook-PIL.Image.py’ from ‘/usr/local/lib/python3.8/site-packages/PyInstaller/hooks’…
11268 INFO: Loading module hook ‘hook-packaging.py’ from ‘/usr/local/lib/python3.8/site-packages/PyInstaller/hooks’…
11268 INFO: Loading module hook ‘hook-pickle.py’ from ‘/usr/local/lib/python3.8/site-packages/PyInstaller/hooks’…
11271 INFO: Excluding import of argparse from module pickle
11271 INFO: Loading module hook ‘hook-heapq.py’ from ‘/usr/local/lib/python3.8/site-packages/PyInstaller/hooks’…
11273 INFO: Excluding import of doctest from module heapq
11273 INFO: Loading module hook ‘hook-difflib.py’ from ‘/usr/local/lib/python3.8/site-packages/PyInstaller/hooks’…
11275 INFO: Excluding import of doctest from module difflib
11275 INFO: Loading module hook ‘hook-multiprocessing.util.py’ from ‘/usr/local/lib/python3.8/site-packages/PyInstaller/hooks’…
11277 INFO: Excluding import of test.support from module multiprocessing.util
11277 INFO: Excluding import of test from module multiprocessing.util
11277 INFO: Loading module hook ‘hook-sysconfig.py’ from ‘/usr/local/lib/python3.8/site-packages/PyInstaller/hooks’…
11283 INFO: Loading module hook ‘hook-xml.py’ from ‘/usr/local/lib/python3.8/site-packages/PyInstaller/hooks’…
11342 INFO: Loading module hook ‘hook-numpy.py’ from ‘/usr/local/lib/python3.8/site-packages/PyInstaller/hooks’…
11378 INFO: Excluding import of setuptools.command.bdist_egg from module numpy.distutils.core
11379 INFO: Excluding import of setuptools.command from module numpy.distutils.core
11379 INFO: Excluding import of setuptools.command.easy_install from module numpy.distutils.core
11379 INFO: Excluding import of setuptools from module numpy.distutils.core
11381 INFO: Excluding import of setuptools.command.sdist from module numpy.distutils.command.sdist
11381 INFO: Excluding import of setuptools.command.install from module numpy.distutils.command.install
11381 INFO: Excluding import of setuptools.command.bdist_rpm from module numpy.distutils.command.bdist_rpm
11381 INFO: Excluding import of setuptools.command.develop from module numpy.distutils.command.develop
11381 INFO: Excluding import of setuptools.command.egg_info from module numpy.distutils.command.egg_info
11382 INFO: Import to be excluded not found: ‘f2py’
11384 INFO: Excluding import of numpy.f2py from module numpy.distutils.system_info
11384 INFO: Excluding import of numpy.f2py.common_rules from module numpy.f2py
11384 INFO: Excluding import of numpy.f2py.diagnose from module numpy.f2py
11384 INFO: Excluding import of numpy.f2py.rules from module numpy.f2py

11384 INFO: Excluding import of numpy.f2py.use_rules from module numpy.f2py

11384 INFO: Excluding import of numpy.f2py.f2py2e from module numpy.f2py

11384 INFO: Excluding import of numpy.f2py from module numpy.f2py

11384 INFO: Excluding import of numpy.f2py.version from module numpy.f2py

11384 INFO: Excluding import of numpy.f2py.capi_maps from module numpy.f2py

11384 INFO: Excluding import of numpy.f2py.cb_rules from module numpy.f2py

11384 INFO: Excluding import of numpy.f2py.f90mod_rules from module numpy.f2py

11384 INFO: Excluding import of numpy.f2py.f2py_testing from module numpy.f2py

11384 INFO: Excluding import of numpy.f2py.crackfortran from module numpy.f2py

11384 INFO: Excluding import of numpy.f2py.cfuncs from module numpy.f2py

11384 INFO: Excluding import of numpy.f2py.func2subr from module numpy.f2py

11384 INFO: Excluding import of numpy.f2py.rules from module numpy.f2py.f2py2e

11384 INFO: Excluding import of numpy.f2py from module numpy.f2py.f2py2e

11384 INFO: Excluding import of numpy.f2py.version from module numpy.f2py.f2py2e

11384 INFO: Excluding import of numpy.f2py.capi_maps from module numpy.f2py.f2py2e

11385 INFO: Excluding import of numpy.f2py.cb_rules from module numpy.f2py.f2py2e

11385 INFO: Excluding import of numpy.f2py.f90mod_rules from module numpy.f2py.f2py2e

11385 INFO: Excluding import of numpy.f2py.crackfortran from module numpy.f2py.f2py2e

11385 INFO: Excluding import of numpy.f2py.cfuncs from module numpy.f2py.f2py2e

11385 INFO: Excluding import of numpy.f2py.auxfuncs from module numpy.f2py.f2py2e

11385 INFO: Excluding import of numpy.f2py.auxfuncs from module numpy.f2py.crackfortran

11385 INFO: Excluding import of numpy.f2py from module numpy.f2py.crackfortran

11385 INFO: Excluding import of numpy.f2py.version from module numpy.f2py.crackfortran

11385 INFO: Excluding import of numpy.f2py from module numpy.f2py.version

11385 INFO: Excluding import of numpy.f2py from module numpy.f2py.auxfuncs

11385 INFO: Excluding import of numpy.f2py.version from module numpy.f2py.auxfuncs

11385 INFO: Excluding import of numpy.f2py.capi_maps from module numpy.f2py.auxfuncs

11385 INFO: Excluding import of numpy.f2py.cfuncs from module numpy.f2py.auxfuncs

11385 INFO: Excluding import of numpy.f2py from module numpy.f2py.cfuncs

11385 INFO: Excluding import of numpy.f2py.version from module numpy.f2py.cfuncs

11385 INFO: Excluding import of numpy.f2py.capi_maps from module numpy.f2py.cfuncs

11385 INFO: Excluding import of numpy.f2py from module numpy.f2py.capi_maps

11385 INFO: Excluding import of numpy.f2py.version from module numpy.f2py.capi_maps

11385 INFO: Excluding import of numpy.f2py.cb_rules from module numpy.f2py.capi_maps

11385 INFO: Excluding import of numpy.f2py.crackfortran from module numpy.f2py.capi_maps

11385 INFO: Excluding import of numpy.f2py.auxfuncs from module numpy.f2py.capi_maps

11385 INFO: Excluding import of numpy.f2py from module numpy.f2py.cb_rules

11385 INFO: Excluding import of numpy.f2py.version from module numpy.f2py.cb_rules

11385 INFO: Excluding import of numpy.f2py.capi_maps from module numpy.f2py.cb_rules

11385 INFO: Excluding import of numpy.f2py.cfuncs from module numpy.f2py.cb_rules

11385 INFO: Excluding import of numpy.f2py.auxfuncs from module numpy.f2py.cb_rules

11385 INFO: Excluding import of numpy.f2py.common_rules from module numpy.f2py.rules

11385 INFO: Excluding import of numpy.f2py.use_rules from module numpy.f2py.rules

11385 INFO: Excluding import of numpy.f2py from module numpy.f2py.rules

11386 INFO: Excluding import of numpy.f2py.version from module numpy.f2py.rules

11386 INFO: Excluding import of numpy.f2py.capi_maps from module numpy.f2py.rules

11386 INFO: Excluding import of numpy.f2py.f90mod_rules from module numpy.f2py.rules

11386 INFO: Excluding import of numpy.f2py.cfuncs from module numpy.f2py.rules

11386 INFO: Excluding import of numpy.f2py.func2subr from module numpy.f2py.rules

11386 INFO: Excluding import of numpy.f2py.auxfuncs from module numpy.f2py.rules

11386 INFO: Excluding import of numpy.f2py from module numpy.f2py.common_rules

11386 INFO: Excluding import of numpy.f2py.version from module numpy.f2py.common_rules

11386 INFO: Excluding import of numpy.f2py.capi_maps from module numpy.f2py.common_rules

11386 INFO: Excluding import of numpy.f2py.crackfortran from module numpy.f2py.common_rules

11386 INFO: Excluding import of numpy.f2py.func2subr from module numpy.f2py.common_rules

11386 INFO: Excluding import of numpy.f2py.auxfuncs from module numpy.f2py.common_rules

11386 INFO: Excluding import of numpy.f2py.auxfuncs from module numpy.f2py.func2subr

11386 INFO: Excluding import of numpy.f2py from module numpy.f2py.func2subr

11386 INFO: Excluding import of numpy.f2py.auxfuncs from module numpy.f2py.use_rules

11386 INFO: Excluding import of numpy.f2py from module numpy.f2py.use_rules

11386 INFO: Excluding import of numpy.f2py.rules from module numpy.f2py.f90mod_rules

11386 INFO: Excluding import of numpy.f2py from module numpy.f2py.f90mod_rules

11386 INFO: Excluding import of numpy.f2py.capi_maps from module numpy.f2py.f90mod_rules

11386 INFO: Excluding import of numpy.f2py.crackfortran from module numpy.f2py.f90mod_rules

11386 INFO: Excluding import of numpy.f2py.func2subr from module numpy.f2py.f90mod_rules

11386 INFO: Excluding import of numpy.f2py.auxfuncs from module numpy.f2py.f90mod_rules

11386 INFO: Excluding import of numpy.f2py from module numpy.distutils.command.build_src

11386 INFO: Excluding import of numpy.f2py from module numpy.f2py.f2py_testing

11387 INFO: Excluding import of numpy.f2py.f2py2e from module numpy.f2py.diagnose

11387 INFO: Excluding import of numpy.f2py from module numpy.f2py.diagnose

11389 INFO: Excluding import of numpy.distutils.cpuinfo from module numpy._pytesttester

11389 INFO: Excluding import of numpy.distutils from module numpy._pytesttester

11389 INFO: Excluding import of numpy.distutils.log from module numpy.distutils

11389 INFO: Excluding import of numpy.distutils.lib2def from module numpy.distutils

11389 INFO: Excluding import of numpy.distutils._shell_utils from module numpy.distutils

11389 INFO: Excluding import of numpy.distutils.ccompiler from module numpy.distutils

11389 INFO: Excluding import of numpy.distutils from module numpy.distutils

11390 INFO: Excluding import of numpy.distutils.fcompiler from module numpy.distutils

11390 INFO: Excluding import of numpy.distutils.config from module numpy.distutils

11390 INFO: Excluding import of numpy.distutils.unixccompiler from module numpy.distutils

11390 INFO: Excluding import of numpy.distutils.npy_pkg_config from module numpy.distutils

11390 INFO: Excluding import of numpy.distutils.log from module numpy.distutils.ccompiler

11390 INFO: Excluding import of numpy.distutils.misc_util from module numpy.distutils.ccompiler

11390 INFO: Excluding import of numpy.distutils from module numpy.distutils.ccompiler

11390 INFO: Excluding import of numpy.distutils.fcompiler from module numpy.distutils.ccompiler

11390 INFO: Excluding import of numpy.distutils.exec_command from module numpy.distutils.ccompiler

11390 INFO: Excluding import of numpy.distutils.misc_util from module numpy.distutils.log

11390 INFO: Excluding import of numpy.distutils from module numpy.distutils.log

11390 INFO: Excluding import of numpy.distutils.core from module numpy.distutils.misc_util

11391 INFO: Excluding import of numpy.distutils.npy_pkg_config from module numpy.distutils.misc_util

11391 INFO: Excluding import of numpy.distutils.system_info from module numpy.distutils.misc_util

11391 INFO: Excluding import of numpy.distutils from module numpy.distutils.misc_util

11391 INFO: Excluding import of numpy.distutils.command.sdist from module numpy.distutils.core

11391 INFO: Excluding import of numpy.distutils.command.build_py from module numpy.distutils.core

11391 INFO: Excluding import of numpy.distutils.numpy_distribution from module numpy.distutils.core

11391 INFO: Excluding import of numpy.distutils.command.build_scripts from module numpy.distutils.core

11391 INFO: Excluding import of numpy.distutils from module numpy.distutils.core

11391 INFO: Excluding import of numpy.distutils.command.install_clib from module numpy.distutils.core

11391 INFO: Excluding import of numpy.distutils.command.build_ext from module numpy.distutils.core

11391 INFO: Excluding import of numpy.distutils.command.bdist_rpm from module numpy.distutils.core

11391 INFO: Excluding import of numpy.distutils.command.build_src from module numpy.distutils.core

11392 INFO: Excluding import of numpy.distutils.command.build from module numpy.distutils.core

11392 INFO: Excluding import of numpy.distutils.misc_util from module numpy.distutils.core

11392 INFO: Excluding import of numpy.distutils.command.egg_info from module numpy.distutils.core

11392 INFO: Excluding import of numpy.distutils.command.develop from module numpy.distutils.core

11392 INFO: Excluding import of numpy.distutils.command from module numpy.distutils.core

11392 INFO: Excluding import of numpy.distutils.command.install_headers from module numpy.distutils.core

11392 INFO: Excluding import of numpy.distutils.command.config_compiler from module numpy.distutils.core

11392 INFO: Excluding import of numpy.distutils.extension from module numpy.distutils.core

11392 INFO: Excluding import of numpy.distutils.command.install from module numpy.distutils.core

11392 INFO: Excluding import of numpy.distutils.command.build_clib from module numpy.distutils.core

11392 INFO: Excluding import of numpy.distutils.command.config from module numpy.distutils.core

11392 INFO: Excluding import of numpy.distutils.command.install_data from module numpy.distutils.core

11392 INFO: Excluding import of numpy.distutils from module numpy.distutils.extension

11392 INFO: Excluding import of numpy.distutils from module numpy.distutils.numpy_distribution

11392 INFO: Excluding import of numpy.distutils.command.build from module numpy.distutils.command

11393 INFO: Excluding import of numpy.distutils.command.sdist from module numpy.distutils.command

11393 INFO: Excluding import of numpy.distutils.command.build_py from module numpy.distutils.command

11393 INFO: Excluding import of numpy.distutils.command.install from module numpy.distutils.command

11393 INFO: Excluding import of numpy.distutils.command.build_scripts from module numpy.distutils.command

11393 INFO: Excluding import of numpy.distutils.command.build_clib from module numpy.distutils.command

0 个答案:

没有答案