Pygame to exe display module error 解决办法

超级网迷+ 电脑迷+ 音乐迷
打印 被阅读次数

错误信息:

RuntimeWarning: import display: No module named _view
RuntimeWarning: import draw: No module named _view
RuntimeWarning: import image: Nomodule named _view
RuntimeWarning: import pixelcopy: No module named _view
RuntimeWarning: import transform: No module named _view

解决办法就是: Add import pygame._view to the top of your main source file, as described here.

另外,我的upx 3.91在压缩文件wxbase30u_vc90.dll (1978KB)后,运行出错。还是不要压缩此文件了:)

2015.08.31

登录后才可评论.