'modules appear to be missing' - py2exe

大兔子大兔子 提交于 2019-12-02 03:08:56

What I did is I updated the 'setup.py' file to contain the paths to the missing modules, using

import sys
sys.path.insert(0, <path_to_missing_modules>)

This way I do no need to polute the ...\site_packages\ folder.

Here is what finally worked for me. Manually copying the folder containing the files which your .py(to be converted to .exe) file imports, before running py2exe, to Python27\Lib\site-packages\ fixes such problems I guess.

you need to place '__init__.py' to every module your using in your project. since init.py tell to your py2exe convertor that there is a python module here.

Since i have faced the same issue Few days back. with zope.interface and mp_tools i placed empty __init__.py worked fine for me

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!