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