Pygame to exe display module error 解决办法
文章来源: 在城里2015-08-31 18:21:19

错误信息:

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