C:\Users\User\Projects\I>python setup.py py2exe
Traceback (most recent call last):
File "<frozen importlib._bootstrap>", line 1519, in _find_and_load_unlocked
AttributeError: 'module' object has no attribute '__path__'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "setup.py", line 1, in <module>
from distutils.core import setup
File "C:\Users\User\Projects\I\distutils.py", line 1, in <module>
from distutils.core import setup
ImportError: No module named 'distutils.core'; distutils is not a package
setup.py
from distutils.core import setup
import py2exe
setup(
windows=[{"script":"gui.py"}],
options={"py2exe": {"includes":["sip", "random", "json", "os", "multiprocessing.dummy", "requests", "tkinter"]}}
)
Почему не получается собрать exe?