Home > other >  Windows Server 2019, python IIS10 deployment environment, the match of the match, but run wrong
Windows Server 2019, python IIS10 deployment environment, the match of the match, but run wrong

Time:11-20

Windows Server 2019, IIS10 deployment python environment, the match of the match, but run error
Test. Py
 print (" & lt; h1> Hello World!  

has been according to teach configuration/tutorial address: https://www.cnblogs.com/shenh/p/8028081.html

Test. Py also add # coding=GBK or utf-8 encoding are tried and can't

Directly in python test. Py command line, can be successful, is running under iis not


tip:
HTTP error 502.2 - Bad Gateway
The specified CGI application because the returns a complete set of HTTP headers and produce error behavior, it is the head of the actual return of "File" C: \ Users \ flyso \ AppData \ Local \ designed \ Python \ Python36 \ Python exe ", line 1 SyntaxError: Non - utf-8 code starting with '\ x90' in the File C: \ Users \ flyso \ AppData \ Local \ designed \ Python \ Python36 \ Python exe on line 1, but no encoding declared; See http://python.org/dev/peps/pep-0263/for the details, "
  • Related