求助,用pyinstaller打包python文件,出现警告,未发现pygame._view怎么解决???

在使用pyinstaller打包文件时,出现了这个错误,10783 WARNING: Hidden import "pygame._view" not found! 查找了很多资料都无法解决,希望有遇到的大佬帮忙解决一下,非常感谢。
在这里插入图片描述
E:\python练习\alien>pyinstaller -F a.py
117 INFO: PyInstaller: 3.4
117 INFO: Python: 3.7.2
118 INFO: Platform: Windows-7-6.1.7601-SP1
120 INFO: wrote E:\python练习\alien\a.spec
125 INFO: UPX is not available.
156 INFO: Extending PYTHONPATH with paths
[‘E:\python练习\alien’, ‘E:\python练习\alien’]
157 INFO: checking Analysis
158 INFO: Building Analysis because Analysis-00.toc is non existent
158 INFO: Initializing module dependency graph…
162 INFO: Initializing module graph hooks…
166 INFO: Analyzing base_library.zip …
5506 INFO: running Analysis Analysis-00.toc
5511 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of f
inal executable
required by d:\python\python.exe
6712 INFO: Caching module hooks…
6721 INFO: Analyzing E:\python练习\alien\a.py
7185 INFO: Processing pre-find module path hook distutils
7259 INFO: Processing pre-find module path hook site
7261 INFO: site: retargeting to fake-dir ‘C:\Users\MM\AppData\Roaming\Pytho
n\Python37\site-packages\PyInstaller\fake-modules’
9593 INFO: Loading module hooks…
9594 INFO: Loading module hook “hook-distutils.py”…
9596 INFO: Loading module hook “hook-encodings.py”…
9766 INFO: Loading module hook “hook-pkg_resources.py”…
10314 INFO: Processing pre-safe import module hook win32com
10780 INFO: Loading module hook “hook-pydoc.py”…
10781 INFO: Loading module hook “hook-pygame.py”…
10783 WARNING: Hidden import “pygame._view” not found!
10784 INFO: Loading module hook “hook-pythoncom.py”…
11248 INFO: Loading module hook “hook-pywintypes.py”…
11705 INFO: Loading module hook “hook-sysconfig.py”…
11707 INFO: Loading module hook “hook-win32com.py”…
12590 INFO: Loading module hook “hook-xml.dom.domreg.py”…
12592 INFO: Loading module hook “hook-xml.py”…
12629 INFO: Looking for ctypes DLLs
12658 INFO: Analyzing run-time hooks …
12664 INFO: Including run-time hook ‘pyi_rth_pkgres.py’
12667 INFO: Including run-time hook ‘pyi_rth_win32comgenpy.py’
12680 INFO: Looking for dynamic libraries
15618 INFO: Looking for eggs
15618 INFO: Using Python library d:\python\python37.dll
15619 INFO: Found binding redirects:
[]
15648 INFO: Warnings written to E:\python练习\alien\build\a\warn-a.txt
15802 INFO: Graph cross-reference written to E:\python练习\alien\build\a\xref-a.
html
15828 INFO: checking PYZ
15829 INFO: Building PYZ because PYZ-00.toc is non existent
15829 INFO: Building PYZ (ZlibArchive) E:\python练习\alien\build\a\PYZ-00.pyz
17416 INFO: Building PYZ (ZlibArchive) E:\python练习\alien\build\a\PYZ-00.pyz co
mpleted successfully.
17436 INFO: checking PKG
17437 INFO: Building PKG because PKG-00.toc is non existent
17437 INFO: Building PKG (CArchive) PKG-00.pkg
23247 INFO: Building PKG (CArchive) PKG-00.pkg completed successfully.
23256 INFO: Bootloader C:\Users\MM\AppData\Roaming\Python\Python37\site-packages
\PyInstaller\bootloader\Windows-64bit\run.exe
23256 INFO: checking EXE
23257 INFO: Building EXE because EXE-00.toc is non existent
23257 INFO: Building EXE from EXE-00.toc
23259 INFO: Appending archive to EXE E:\python练习\alien\dist\a.exe
23282 INFO: Building EXE from EXE-00.toc completed successfully.

猜你喜欢

转载自blog.csdn.net/qq_36016668/article/details/88621755