当我在输出控制台中为.exe创建Python可执行文件时,它说一切都打包好了,但是当我想运行.exe时,face_recognition和Windows控制台中的某些库出现错误。运行.exe时,我将在控制台中得到的图像保留下来。我正在使用pyinstaller Output of .exe
完成.exe的创建后,我将在控制台输出中保留所有内容
Running auto-py-to-exe v2.6.6
Building in the current instances temporary directory at C:\Users\Nico\AppData\Local\Temp\tmpfj6h6obi
To get a new temporary directory, restart this application
Recursion Limit is set to 5000
Executing: pyinstaller -y --add-data "C:/Users/Nico/Desktop/face_detection-master/obama.jpg";"." --add-data "C:/Users/Nico/Desktop/face_detection-master/biden.jpg";"." "C:/Users/Nico/Desktop/face_detection-master/test.py"
473450 INFO: PyInstaller: 3.6
473450 INFO: Python: 3.8.0
473452 INFO: Platform: Windows-10-10.0.18362-SP0
473456 INFO: wrote C:\Users\Nico\AppData\Local\Temp\tmpfj6h6obi\test.spec
473462 INFO: UPX is not available.
473469 INFO: Extending PYTHONPATH with paths
['C:\\Users\\Nico\\Desktop\\face_detection-master',
'C:\\Users\\Nico\\AppData\\Local\\Temp\\tmpfj6h6obi']
473469 INFO: checking Analysis
473469 INFO: Building Analysis because Analysis-01.toc is non existent
473470 INFO: Reusing cached module dependency graph...
473634 INFO: Caching module graph hooks...
473763 INFO: running Analysis Analysis-01.toc
473767 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of final executable
required by c:\users\nico\documents\github\entorno3\scripts\python.exe
473792 INFO: Analyzing C:\Users\Nico\Desktop\face_detection-master\test.py
475893 INFO: Processing pre-find module path hook distutils
475898 INFO: distutils: retargeting to non-venv dir 'C:\\Users\\Nico\\AppData\\Local\\Programs\\Python\\Python38-32\\lib'
478075 INFO: Processing pre-find module path hook site
478078 INFO: site: retargeting to fake-dir 'c:\\users\\nico\\documents\\github\\entorno3\\lib\\site-packages\\PyInstaller\\fake-modules'
481470 INFO: Processing pre-safe import module hook setuptools.extern.six.moves
492436 INFO: Processing module hooks...
492436 INFO: Loading module hook "hook-cv2.py"...
492440 INFO: Loading module hook "hook-distutils.py"...
492445 INFO: Loading module hook "hook-encodings.py"...
492666 INFO: Loading module hook "hook-gevent.py"...
493253 WARNING: Unable to find package for requirement greenlet from package gevent.
493255 INFO: Packages required by gevent:
['cffi']
496175 INFO: Loading module hook "hook-jinja2.py"...
496235 INFO: Loading module hook "hook-lib2to3.py"...
496246 INFO: Loading module hook "hook-numpy.core.py"...
496250 INFO: Loading module hook "hook-numpy.py"...
496255 INFO: Loading module hook "hook-PIL.Image.py"...
497067 INFO: Loading module hook "hook-PIL.py"...
497075 INFO: Excluding import 'PyQt5'
497085 INFO: Removing import of PyQt5 from module PIL.ImageQt
497086 INFO: Import to be excluded not found: 'FixTk'
497086 INFO: Import to be excluded not found: 'PyQt4'
497089 INFO: Import to be excluded not found: 'PySide'
497089 INFO: Excluding import 'tkinter'
497098 INFO: Removing import of tkinter from module PIL.ImageTk
497099 INFO: Loading module hook "hook-PIL.SpiderImagePlugin.py"...
497104 INFO: Excluding import 'tkinter'
497109 INFO: Import to be excluded not found: 'FixTk'
497110 INFO: Loading module hook "hook-pkg_resources.py"...
497791 INFO: Processing pre-safe import module hook win32com
498009 INFO: Processing pre-safe import module hook win32com
498702 INFO: Excluding import '__main__'
498706 INFO: Removing import of __main__ from module pkg_resources
498707 INFO: Loading module hook "hook-pycparser.py"...
498708 INFO: Loading module hook "hook-pydoc.py"...
498711 INFO: Loading module hook "hook-setuptools.py"...
500075 INFO: Loading module hook "hook-sysconfig.py"...
500081 INFO: Loading module hook "hook-xml.py"...
500261 INFO: Loading module hook "hook-_tkinter.py"...
500635 INFO: checking Tree
500635 INFO: Building Tree because Tree-02.toc is non existent
500636 INFO: Building Tree Tree-02.toc
500814 INFO: checking Tree
500814 INFO: Building Tree because Tree-03.toc is non existent
500814 INFO: Building Tree Tree-03.toc
500977 INFO: Looking for ctypes DLLs
501166 INFO: Analyzing run-time hooks ...
501194 INFO: Including run-time hook 'pyi_rth_multiprocessing.py'
501203 INFO: Including run-time hook 'pyi_rth_pkgres.py'
501244 INFO: Looking for dynamic libraries
503218 INFO: Looking for eggs
503218 INFO: Using Python library C:\Users\Nico\AppData\Local\Programs\Python\Python38-32\python38.dll
503221 INFO: Found binding redirects:
[]
503253 INFO: Warnings written to C:\Users\Nico\AppData\Local\Temp\tmpfj6h6obi\build\test\warn-test.txt
503616 INFO: Graph cross-reference written to C:\Users\Nico\AppData\Local\Temp\tmpfj6h6obi\build\test\xref-test.html
503668 INFO: Appending 'datas' from .spec
503674 INFO: checking PYZ
503674 INFO: Building PYZ because PYZ-01.toc is non existent
503674 INFO: Building PYZ (ZlibArchive) C:\Users\Nico\AppData\Local\Temp\tmpfj6h6obi\build\test\PYZ-01.pyz
507606 INFO: Building PYZ (ZlibArchive) C:\Users\Nico\AppData\Local\Temp\tmpfj6h6obi\build\test\PYZ-01.pyz completed successfully.
507671 INFO: checking PKG
507672 INFO: Building PKG because PKG-01.toc is non existent
507672 INFO: Building PKG (CArchive) PKG-01.pkg
507740 INFO: Building PKG (CArchive) PKG-01.pkg completed successfully.
507743 INFO: Bootloader c:\users\nico\documents\github\entorno3\lib\site-packages\PyInstaller\bootloader\Windows-32bit\run.exe
507743 INFO: checking EXE
507743 INFO: Building EXE because EXE-01.toc is non existent
507743 INFO: Building EXE from EXE-01.toc
507745 INFO: Appending archive to EXE C:\Users\Nico\AppData\Local\Temp\tmpfj6h6obi\build\test\test.exe
507767 INFO: Building EXE from EXE-01.toc completed successfully.
507774 INFO: checking COLLECT
507775 INFO: Building COLLECT because COLLECT-01.toc is non existent
507776 INFO: Building COLLECT COLLECT-01.toc
509495 INFO: Building COLLECT COLLECT-01.toc completed successfully.
Moving project to: C:\Users\Nico\Desktop\face_detection-master\output
Complete.