I've been trying to use py2exe on a completed code, but something is not going right with my py2exe installation. I am getting the error below:
I am running below version of Python along with py2exe
>>>>>Installed Pythons found by py Launcher for Windows
-3.7-64 *
>>>>>Collecting py2exe
Downloading https://files.pythonhosted.org/packages/6a/16/19bd8b59db4a61ff003aee258efd86a0aca050718435b1f54592ac870235/py2exe-0.9.2.2-py33.py34-none-any.whl (270kB)
|¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦| 276kB 819kB/s
Installing collected packages: py2exe
Successfully installed py2exe-0.9.2.2
Please Help
from distutils.core import setup
import py2exe
import sip
setup(options={'py2exe':{'bundle_files': 1, 'compressed': True}},
windows=['INCSrc.py'], zipfile = None)
Error: Importing py2exe fails
Traceback (most recent call last):
File "C:\Users\Desktop\Python Projects\Final\setup.py", line 2, in <module>
import py2exe
ModuleNotFoundError: No module named 'py2exe'