M
M
Max Payne2016-06-03 22:53:56
Python
Max Payne, 2016-06-03 22:53:56

Why is py2exe not working?

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"]}}
)

Why can't build exe?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
#
#algooptimize #bottize, 2016-06-03
@user004

stackoverflow.com/questions/3810521/how-to-install...
?

V
Viktor Paperno, 2016-06-04
@AviPaperno

I recommend switching to CX_Freeze

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question