设为首页收藏本站

Crossin的编程教室

 找回密码
 立即加入
查看: 13346|回复: 0
打印 上一主题 下一主题

【求组】关于用pyinstaller给pygame打包的问题

[复制链接]

1

主题

0

好友

5

积分

新手上路

Rank: 1

跳转到指定楼层
楼主
发表于 2017-8-11 14:46:51 |显示全部楼层 |倒序浏览
我的所有版本都下载对了,而且都是32位的,从未下载过64位的,路径环境也没问题。按照网上的步骤,在cmd里进行封包,可每次都提示我 hidden import pygame._view not found。然后运行生成的exe,总是提示failed to execute script。

Microsoft Windows [版本 6.3.9600]
(c) 2013 Microsoft Corporation。保留所有权利。

C:\Users\Lenovo>c:

C:\Users\Lenovo>cd \python34

C:\Python34>cd scripts

C:\Python34\Scripts>pyinstaller.exe -F -w C:\Users\Lenovo\Desktop\0\main.py
137 INFO: PyInstaller: 3.2.1
137 INFO: Python: 3.4.4
138 INFO: Platform: Windows-8.1-6.3.9600
139 INFO: wrote C:\Python34\Scripts\main.spec
140 INFO: UPX is not available.
142 INFO: Extending PYTHONPATH with paths
['C:\\Users\\Lenovo\\Desktop\\0', 'C:\\Python34\\Scripts']
143 INFO: checking Analysis
143 INFO: Building Analysis because out00-Analysis.toc is non existent
143 INFO: Initializing module dependency graph...
235 INFO: Initializing module graph hooks...
258 INFO: Analyzing base_library.zip ...
2690 INFO: Processing pre-find module path hook   distutils
5729 INFO: running Analysis out00-Analysis.toc
5948 INFO: Caching module hooks...
5961 INFO: Analyzing C:\Users\Lenovo\Desktop\0\main.py
7449 INFO: Loading module hooks...
7449 INFO: Loading module hook "hook-lib2to3.py"...
7639 INFO: Loading module hook "hook-encodings.py"...
7801 INFO: Loading module hook "hook-xml.py"...
8791 INFO: Loading module hook "hook-sysconfig.py"...
8817 INFO: Loading module hook "hook-pygame.py"...
8819 WARNING: Hidden import "pygame._view" not found!
8820 INFO: Loading module hook "hook-pkg_resources.py"...
9404 INFO: Loading module hook "hook-distutils.py"...
9457 INFO: Loading module hook "hook-pydoc.py"...
9513 INFO: Looking for ctypes DLLs
9531 INFO: Analyzing run-time hooks ...
9537 INFO: Including run-time hook 'pyi_rth_pkgres.py'
9562 INFO: Looking for dynamic libraries
10126 INFO: Looking for eggs
10126 INFO: Using Python library C:\Windows\system32\python34.dll
10126 INFO: Found binding redirects:
[]
10132 INFO: Warnings written to C:\Python34\Scripts\build\main\warnmain.txt
10270 INFO: checking PYZ
10271 INFO: Building PYZ because out00-PYZ.toc is non existent
10272 INFO: Building PYZ (ZlibArchive) C:\Python34\Scripts\build\main\out00-PYZ.
pyz
12510 INFO: Building PYZ (ZlibArchive) C:\Python34\Scripts\build\main\out00-PYZ.
pyz completed successfully.
12536 INFO: checking PKG
12537 INFO: Building PKG because out00-PKG.toc is non existent
12537 INFO: Building PKG (CArchive) out00-PKG.pkg
19401 INFO: Building PKG (CArchive) out00-PKG.pkg completed successfully.
19426 INFO: Bootloader C:\python34\lib\site-packages\pyinstaller-3.2.1-py3.4.egg
\PyInstaller\bootloader\Windows-32bit\runw.exe
19427 INFO: checking EXE
19428 INFO: Building EXE because out00-EXE.toc is non existent
19428 INFO: Building EXE from out00-EXE.toc
19431 INFO: Appending archive to EXE C:\Python34\Scripts\dist\main.exe
19472 INFO: Building EXE from out00-EXE.toc completed successfully.

C:\Python34\Scripts>

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即加入

QQ|手机版|Archiver|Crossin的编程教室 ( 苏ICP备15063769号  

GMT+8, 2024-5-4 13:41 , Processed in 0.024501 second(s), 23 queries .

Powered by Discuz! X2.5

© 2001-2012 Comsenz Inc.

回顶部