Can't open the desktop app created with pyinstaller
<p>I created a pyinstaller file from a .py file. In this file, IÂ´ve got files with the .ui extensions created using PyQt4. So, when I try to execute the file created, it shows this error:</p>

<pre><code>File "C:\Users\Flosh\Desktop\dist\ProgramNew\New.exe", line 1
SyntaxError: Non-ASCII character '\x90' in file C:\Users\Flosh\Desktop\dist\ProgramNew\New.exe on line 1, 
but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
</code></pre>

<p>In the original file, the .py file, I use the UTF-8 encoding, and this error shows an ASCII problem.</p>

<p>How can I fix this error? Hope you can help me. </p>

<p>You can try cxfreeze for creating the installer or executable package. Description of creating the setup file is given here <a href="https://cx-freeze.readthedocs.io/en/latest/distutils.html" rel="nofollow">https://cx-freeze.readthedocs.io/en/latest/distutils.html</a>. May be this could help you.</p>

python pyqt4 pyinstaller