基本上,我很快为女朋友的生日创建了一个“生日快乐”程序。我导入了winsound,以便它将播放与打印消息一起播放的.wav文件。但是,当尝试使用pyinstaller打包时,它无法访问winsound模块。我尝试阅读/观看所有可用资源,并且半理解需要完成的工作,但是我想我只需要将其分解为外行的条件即可。
import winsound
def main():
print('''Text Here
''')
winsound.PlaySound('birthday.wav', winsound.SND_FILENAME)
menu()
def menu():
menuChoice = int(input('''Would you like to play again?
Press 1 to play again
Press 2 to exit
'''))
while menuChoice <=0 or menuChoice >=3:
print('Input must be either 1 or 2 ')
menuChoice = int(input('Would you like to play again? '))
print('''Press 1 to play again
Press 2 to exit ''')
if menuChoice == 1:
main()
if menuChoice == 2:
exit()
main()
当我运行pyinstaller来生成可执行文件时,该程序在查找库时遇到了问题(我相信这是发生了什么)。
C:\Users\dlepi\Desktop\BirthdayCompile - Copy>pyinstaller -F -i "C:\Users\dlepi\Desktop\BirthdayCompile - Copy\icon.ico" Birthday.py
72 INFO: PyInstaller: 3.4
73 INFO: Python: 3.5.2
74 INFO: Platform: Windows-10-10.0.17134-SP0
75 INFO: wrote C:\Users\dlepi\Desktop\BirthdayCompile - Copy\Birthday.spec
76 INFO: UPX is not available.
78 INFO: Extending PYTHONPATH with paths
['C:\\Users\\dlepi\\Desktop\\BirthdayCompile - Copy',
'C:\\Users\\dlepi\\Desktop\\BirthdayCompile - Copy']
78 INFO: checking Analysis
79 INFO: Building Analysis because Analysis-00.toc is non existent
79 INFO: Initializing module dependency graph...
80 INFO: Initializing module graph hooks...
82 INFO: Analyzing base_library.zip ...
3090 INFO: running Analysis Analysis-00.toc
3125 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\python.exe
3149 WARNING: lib not found: api-ms-win-crt-locale-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\python.exe
3171 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\python.exe
3198 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\python.exe
3222 WARNING: lib not found: api-ms-win-crt-math-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\python.exe
3343 WARNING: lib not found: api-ms-win-crt-convert-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\python35.dll
3368 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\python35.dll
3391 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\python35.dll
3414 WARNING: lib not found: api-ms-win-crt-locale-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\python35.dll
3438 WARNING: lib not found: api-ms-win-crt-process-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\python35.dll
3465 WARNING: lib not found: api-ms-win-crt-filesystem-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\python35.dll
3488 WARNING: lib not found: api-ms-win-crt-time-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\python35.dll
3514 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\python35.dll
3537 WARNING: lib not found: api-ms-win-crt-environment-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\python35.dll
3561 WARNING: lib not found: api-ms-win-crt-math-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\python35.dll
3585 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\python35.dll
3619 WARNING: lib not found: api-ms-win-crt-conio-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\python35.dll
3650 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\VCRUNTIME140.dll
3674 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\VCRUNTIME140.dll
3697 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\VCRUNTIME140.dll
3720 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\VCRUNTIME140.dll
3743 WARNING: lib not found: api-ms-win-crt-convert-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\VCRUNTIME140.dll
3750 INFO: Caching module hooks...
3755 INFO: Analyzing C:\Users\dlepi\Desktop\BirthdayCompile - Copy\Birthday.py
3759 INFO: Loading module hooks...
3760 INFO: Loading module hook "hook-xml.py"...
3975 INFO: Loading module hook "hook-pydoc.py"...
3976 INFO: Loading module hook "hook-encodings.py"...
4077 INFO: Looking for ctypes DLLs
4091 INFO: Analyzing run-time hooks ...
4098 INFO: Looking for dynamic libraries
4129 WARNING: lib not found: api-ms-win-crt-utility-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\_ssl.pyd
4156 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\_ssl.pyd
4179 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\_ssl.pyd
4202 WARNING: lib not found: api-ms-win-crt-filesystem-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\_ssl.pyd
4229 WARNING: lib not found: api-ms-win-crt-time-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\_ssl.pyd
4254 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\_ssl.pyd
4277 WARNING: lib not found: api-ms-win-crt-environment-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\_ssl.pyd
4300 WARNING: lib not found: api-ms-win-crt-convert-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\_ssl.pyd
4323 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\_ssl.pyd
4352 WARNING: lib not found: api-ms-win-crt-conio-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\_ssl.pyd
4383 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\_ctypes.pyd
4406 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\_ctypes.pyd
4430 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\_ctypes.pyd
4466 WARNING: lib not found: api-ms-win-crt-utility-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\pyexpat.pyd
4489 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\pyexpat.pyd
4512 WARNING: lib not found: api-ms-win-crt-time-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\pyexpat.pyd
4535 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\pyexpat.pyd
4558 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\pyexpat.pyd
4591 WARNING: lib not found: api-ms-win-crt-utility-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\_hashlib.pyd
4618 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\_hashlib.pyd
4641 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\_hashlib.pyd
4665 WARNING: lib not found: api-ms-win-crt-time-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\_hashlib.pyd
4688 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\_hashlib.pyd
4711 WARNING: lib not found: api-ms-win-crt-environment-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\_hashlib.pyd
4736 WARNING: lib not found: api-ms-win-crt-convert-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\_hashlib.pyd
4759 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\_hashlib.pyd
4787 WARNING: lib not found: api-ms-win-crt-conio-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\_hashlib.pyd
4816 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\_lzma.pyd
4845 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\_lzma.pyd
4875 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\_socket.pyd
4898 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\_socket.pyd
4928 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\unicodedata.pyd
4953 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\unicodedata.pyd
4977 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\unicodedata.pyd
5012 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\select.pyd
5039 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\_bz2.pyd
5062 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\_bz2.pyd
5086 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\_bz2.pyd
5109 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\_bz2.pyd
5133 WARNING: lib not found: api-ms-win-crt-math-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\_bz2.pyd
5165 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\winsound.pyd
5171 INFO: Looking for eggs
5171 INFO: Using Python library c:\users\dlepi\appdata\local\programs\python\python35\python35.dll
5171 INFO: Found binding redirects:
[]
5181 INFO: Warnings written to C:\Users\dlepi\Desktop\BirthdayCompile - Copy\build\Birthday\warn-Birthday.txt
5224 INFO: Graph cross-reference written to C:\Users\dlepi\Desktop\BirthdayCompile - Copy\build\Birthday\xref-Birthday.html
5243 INFO: checking PYZ
5243 INFO: Building PYZ because PYZ-00.toc is non existent
5244 INFO: Building PYZ (ZlibArchive) C:\Users\dlepi\Desktop\BirthdayCompile - Copy\build\Birthday\PYZ-00.pyz
5628 INFO: Building PYZ (ZlibArchive) C:\Users\dlepi\Desktop\BirthdayCompile - Copy\build\Birthday\PYZ-00.pyz completed successfully.
5635 INFO: checking PKG
5635 INFO: Building PKG because PKG-00.toc is non existent
5636 INFO: Building PKG (CArchive) PKG-00.pkg
7034 INFO: Building PKG (CArchive) PKG-00.pkg completed successfully.
7036 INFO: Bootloader c:\users\dlepi\appdata\local\programs\python\python35\lib\site-packages\PyInstaller\bootloader\Windows-64bit\run.exe
7036 INFO: checking EXE
7037 INFO: Building EXE because EXE-00.toc is non existent
7037 INFO: Building EXE from EXE-00.toc
7039 INFO: SRCPATH [('C:\\Users\\dlepi\\Desktop\\BirthdayCompile - Copy\\icon.ico', None)]
7039 INFO: Updating icons from ['C:\\Users\\dlepi\\Desktop\\BirthdayCompile - Copy\\icon.ico'] to C:\Users\dlepi\AppData\Local\Temp\tmphob54j27
7041 INFO: Writing RT_GROUP_ICON 0 resource with 132 bytes
7041 INFO: Writing RT_ICON 1 resource with 57700 bytes
7041 INFO: Writing RT_ICON 2 resource with 67624 bytes
7043 INFO: Writing RT_ICON 3 resource with 38056 bytes
7045 INFO: Writing RT_ICON 4 resource with 21640 bytes
7047 INFO: Writing RT_ICON 5 resource with 16936 bytes
7047 INFO: Writing RT_ICON 6 resource with 9640 bytes
7047 INFO: Writing RT_ICON 7 resource with 4264 bytes
7047 INFO: Writing RT_ICON 8 resource with 2440 bytes
7048 INFO: Writing RT_ICON 9 resource with 1128 bytes
7059 INFO: Appending archive to EXE C:\Users\dlepi\Desktop\BirthdayCompile - Copy\dist\Birthday.exe
7073 INFO: Building EXE from EXE-00.toc completed successfully.
C:\Users\dlepi\Desktop\BirthdayCompile - Copy>pyinstaller -F -i "C:\Users\dlepi\Desktop\BirthdayCompile - Copy\icon.ico" Birthday.py
73 INFO: PyInstaller: 3.4
73 INFO: Python: 3.5.2
74 INFO: Platform: Windows-10-10.0.17134-SP0
75 INFO: wrote C:\Users\dlepi\Desktop\BirthdayCompile - Copy\Birthday.spec
77 INFO: UPX is not available.
80 INFO: Extending PYTHONPATH with paths
['C:\\Users\\dlepi\\Desktop\\BirthdayCompile - Copy',
'C:\\Users\\dlepi\\Desktop\\BirthdayCompile - Copy']
80 INFO: checking Analysis
80 INFO: Building Analysis because Analysis-00.toc is non existent
81 INFO: Initializing module dependency graph...
82 INFO: Initializing module graph hooks...
84 INFO: Analyzing base_library.zip ...
3032 INFO: running Analysis Analysis-00.toc
3063 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\python.exe
3087 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\python.exe
3119 WARNING: lib not found: api-ms-win-crt-math-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\python.exe
3143 WARNING: lib not found: api-ms-win-crt-locale-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\python.exe
3167 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\python.exe
3197 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\VCRUNTIME140.dll
3223 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\VCRUNTIME140.dll
3261 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\VCRUNTIME140.dll
3284 WARNING: lib not found: api-ms-win-crt-convert-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\VCRUNTIME140.dll
3311 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\VCRUNTIME140.dll
3445 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\python35.dll
3468 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\python35.dll
3493 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\python35.dll
3519 WARNING: lib not found: api-ms-win-crt-convert-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\python35.dll
3543 WARNING: lib not found: api-ms-win-crt-math-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\python35.dll
3566 WARNING: lib not found: api-ms-win-crt-environment-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\python35.dll
3589 WARNING: lib not found: api-ms-win-crt-conio-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\python35.dll
3613 WARNING: lib not found: api-ms-win-crt-time-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\python35.dll
3636 WARNING: lib not found: api-ms-win-crt-filesystem-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\python35.dll
3662 WARNING: lib not found: api-ms-win-crt-locale-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\python35.dll
3687 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\python35.dll
3710 WARNING: lib not found: api-ms-win-crt-process-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\python35.dll
3711 INFO: Caching module hooks...
3717 INFO: Analyzing C:\Users\dlepi\Desktop\BirthdayCompile - Copy\Birthday.py
3721 INFO: Loading module hooks...
3721 INFO: Loading module hook "hook-encodings.py"...
3801 INFO: Loading module hook "hook-xml.py"...
4023 INFO: Loading module hook "hook-pydoc.py"...
4040 INFO: Looking for ctypes DLLs
4051 INFO: Analyzing run-time hooks ...
4057 INFO: Looking for dynamic libraries
4086 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\_ssl.pyd
4110 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\_ssl.pyd
4136 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\_ssl.pyd
4167 WARNING: lib not found: api-ms-win-crt-convert-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\_ssl.pyd
4190 WARNING: lib not found: api-ms-win-crt-environment-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\_ssl.pyd
4214 WARNING: lib not found: api-ms-win-crt-time-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\_ssl.pyd
4240 WARNING: lib not found: api-ms-win-crt-conio-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\_ssl.pyd
4265 WARNING: lib not found: api-ms-win-crt-filesystem-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\_ssl.pyd
4291 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\_ssl.pyd
4316 WARNING: lib not found: api-ms-win-crt-utility-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\_ssl.pyd
4344 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\unicodedata.pyd
4368 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\unicodedata.pyd
4394 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\unicodedata.pyd
4422 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\_ctypes.pyd
4445 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\_ctypes.pyd
4473 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\_ctypes.pyd
4503 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\pyexpat.pyd
4527 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\pyexpat.pyd
4553 WARNING: lib not found: api-ms-win-crt-time-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\pyexpat.pyd
4577 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\pyexpat.pyd
4600 WARNING: lib not found: api-ms-win-crt-utility-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\pyexpat.pyd
4629 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\_hashlib.pyd
4652 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\_hashlib.pyd
4679 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\_hashlib.pyd
4709 WARNING: lib not found: api-ms-win-crt-convert-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\_hashlib.pyd
4732 WARNING: lib not found: api-ms-win-crt-environment-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\_hashlib.pyd
4757 WARNING: lib not found: api-ms-win-crt-conio-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\_hashlib.pyd
4780 WARNING: lib not found: api-ms-win-crt-time-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\_hashlib.pyd
4803 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\_hashlib.pyd
4829 WARNING: lib not found: api-ms-win-crt-utility-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\_hashlib.pyd
4861 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\select.pyd
4889 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\_bz2.pyd
4913 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\_bz2.pyd
4937 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\_bz2.pyd
4964 WARNING: lib not found: api-ms-win-crt-math-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\_bz2.pyd
4987 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\_bz2.pyd
5015 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\_lzma.pyd
5041 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\_lzma.pyd
5070 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\_socket.pyd
5099 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\_socket.pyd
5132 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of c:\users\dlepi\appdata\local\programs\python\python35\DLLs\winsound.pyd
5135 INFO: Looking for eggs
5135 INFO: Using Python library c:\users\dlepi\appdata\local\programs\python\python35\python35.dll
5136 INFO: Found binding redirects:
[]
5147 INFO: Warnings written to C:\Users\dlepi\Desktop\BirthdayCompile - Copy\build\Birthday\warn-Birthday.txt
5189 INFO: Graph cross-reference written to C:\Users\dlepi\Desktop\BirthdayCompile - Copy\build\Birthday\xref-Birthday.html
5209 INFO: checking PYZ
5210 INFO: Building PYZ because PYZ-00.toc is non existent
5211 INFO: Building PYZ (ZlibArchive) C:\Users\dlepi\Desktop\BirthdayCompile - Copy\build\Birthday\PYZ-00.pyz
5601 INFO: Building PYZ (ZlibArchive) C:\Users\dlepi\Desktop\BirthdayCompile - Copy\build\Birthday\PYZ-00.pyz completed successfully.
5608 INFO: checking PKG
5608 INFO: Building PKG because PKG-00.toc is non existent
5609 INFO: Building PKG (CArchive) PKG-00.pkg
7021 INFO: Building PKG (CArchive) PKG-00.pkg completed successfully.
7023 INFO: Bootloader c:\users\dlepi\appdata\local\programs\python\python35\lib\site-packages\PyInstaller\bootloader\Windows-64bit\run.exe
7023 INFO: checking EXE
7023 INFO: Building EXE because EXE-00.toc is non existent
7024 INFO: Building EXE from EXE-00.toc
7026 INFO: SRCPATH [('C:\\Users\\dlepi\\Desktop\\BirthdayCompile - Copy\\icon.ico', None)]
7026 INFO: Updating icons from ['C:\\Users\\dlepi\\Desktop\\BirthdayCompile - Copy\\icon.ico'] to C:\Users\dlepi\AppData\Local\Temp\tmp_okrglzr
7027 INFO: Writing RT_GROUP_ICON 0 resource with 132 bytes
7028 INFO: Writing RT_ICON 1 resource with 57700 bytes
7028 INFO: Writing RT_ICON 2 resource with 67624 bytes
7029 INFO: Writing RT_ICON 3 resource with 38056 bytes
7029 INFO: Writing RT_ICON 4 resource with 21640 bytes
7029 INFO: Writing RT_ICON 5 resource with 16936 bytes
7029 INFO: Writing RT_ICON 6 resource with 9640 bytes
7030 INFO: Writing RT_ICON 7 resource with 4264 bytes
7031 INFO: Writing RT_ICON 8 resource with 2440 bytes
7031 INFO: Writing RT_ICON 9 resource with 1128 bytes
7040 INFO: Appending archive to EXE C:\Users\dlepi\Desktop\BirthdayCompile - Copy\dist\Birthday.exe
7052 INFO: Building EXE from EXE-00.toc completed successfully.
我已经在我的%appdata%pyinstaller> bincache ...中找到了“ winsound.pyd”,但是我不确定如何为pyinstaller提取所需的信息。也许我对所发生的事情完全不对,但这就是它的样子。如果有人可以为我分解该怎么办以及该怎么做,那将是惊人的。我确实浏览了所有资源,但我只是不明白它在问我什么。我找不到实现此功能的任何示例代码。谢谢。
-达斯汀