<p>我正在PyCharm 5.0.4中运行python web应用程序,出现错误:</p>
<pre><code>C:\Users\xxx\AppData\Local\Programs\Python\Python35-32\python.exe C:\Users\xxx\AppData\Local\Programs\Python\Python35-32\python.exe C:/Users/xxx/PycharmProjects/xxxxx/run.py
File "C:\Users\pli\AppData\Local\Programs\Python\Python35-32\python.exe", line 1
SyntaxError: Non-UTF-8 code starting with '\x90' in file C:\Users\pli\AppData\Local\Programs\Python\Python35-32\python.exe on line 1, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
Process finished with exit code 1
</code></pre>
<p>我的python版本是3.5.1。但是我可以从CMD运行python代码。我在想是不是因为配置的问题,因为不应该有这样的错误python.exe. 在</p>
<p><a href="https://i.stack.imgur.com/Kl9J2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Kl9J2.png" alt="configure"/></a>
<a href="https://s14.postimg.org/ren7faib5/Screenshot_2016_02_27_13_06_01.png" rel="nofollow noreferrer">https://s14.postimg.org/ren7faib5/Screenshot_2016_02_27_13_06_01.png</a></p>
<p>代码是常见的Flask web应用程序代码:</p>
^{pr2}$