我使用setup.py:
from distutils.core import setup
import py2exe
setup(
windows=[{"script":"flask_gevent.py"}],
options={
"py2exe":{
"includes": []
},
}
)
Traceback (most recent call last):
File "flask_gevent.py", line 77, in <module>
File "gevent\pywsgi.pyc", line 605, in __init__
File "gevent\server.pyc", line 48, in __init__
File "gevent\baseserver.pyc", line 55, in __init__
File "gevent\event.pyc", line 27, in __init__
File "gevent\hub.pyc", line 169, in get_hub
File "gevent\hub.pyc", line 268, in __init__
File "gevent\hub.pyc", line 198, in _import
File "gevent\hub.pyc", line 210, in _import
File "gevent\core.pyc", line 12, in <module>
File "gevent\core.pyc", line 5, in __load
AttributeError: 'module' object has no attribute 'path'
有人可以帮我解决这个问题吗?
在dist目录中,
我可以看到一些与gevent相关的软件包已经包含在:
这个问题已经解决,只需在“选项”中添加“ bundle_files”:1,就可以正常工作!
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句