I'm trying to compile with py2exe
, but when I'll compile from the error.
I will give an example of this error, with the programs Python 2.7 64 bits, pyqt4 for Python 2.7, and py2exe
for Python 2.7.
Follow the example:
Create a file teste.py
with body:
import sys
from PyQt4 import QtGui, uic
Create a setup.py
file with body:
from distutils.core import setup
import py2exe
setup(console=['teste.py'])
Then compile:
python setup.py py2exe
And the error occurs:
error: compiling
'C:\Python27\lib\site-packages\PyQt4\uic\port_v3\proxy_base.py' failed
SyntaxError: invalid syntax <proxy_base.py, line 26>