when we use the py2exe, it may occurs that modules missing. such as pkg_resources. but in the cmd, we can normaly include the module we need. That's because we use the easy_install to install modules. it's fast and convenient but sadly py2exe CAN'T support it . we need to unzip the egg into the local files.
py2exe可以将python的程序转换城生成window 平台使用的可执行文件,从而可以脱离python环境单独运行。 但有时候用py2exe生成的文件会报can’t find module name”" 等错误,原因很可能是这个模块是用egg安装的 Egg类似java的jar文件,是一种打包好的python库文件。用easy_install安装这种格式的库很方便,但是当前版本的py2exe还不能找到egg中的模块 解决办法最简单的就是将egg包解压到当前路径