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>This is a Python traceback, but the first line is showing an <em>exe file</em>:</p>

<pre><code>File "C:\Users\Flosh\Desktop\dist\ProgramNew\New.exe", line 1
</code></pre>

<p>which suggests you must be trying to run the application like this:</p>

<pre><code>python C:\Users\Flosh\Desktop\dist\ProgramNew\New.exe
</code></pre>

<p>You cannot run exe files with Python. Indeed, the whole point of using tools like PyInstaller is that you don't even need to have Python installed in order to run the program. You have created a <em>self-contained executable</em>, so just run it directly, like this:</p>

<pre><code>C:\Users\Flosh\Desktop\dist\ProgramNew\New.exe
</code></pre>

python pyqt4 pyinstaller