【问题标题】:How to use python 3.x scripts on IIS windows 10如何在 IIS windows 10 上使用 python 3.x 脚本
【发布时间】:2016-03-20 05:53:14
【问题描述】:

我试图在 IIS 上运行 python 3.x 脚本,我遇到了这个答案:https://stackoverflow.com/a/9745836/5457561

我尝试了这种方法,但它似乎不起作用,我收到了The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are " File "C:\dev\python\HelloWorld.py", line 1 print 'Content-Type: text/plain' ^ SyntaxError: Missing parentheses in call to 'print'"。

我只是想知道是否有一种方法可以解决这个问题并在 IIS 10 上使用 python 3.x 脚本

【问题讨论】:

  • 更正:这是一个 Python 2 脚本。如果是 Python 3,就会有括号。

标签: python iis iis-10


【解决方案1】:

只需修复“C:\dev\python\HelloWorld.py”中的语法错误即可。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-08-10
    • 2015-11-20
    • 2019-09-11
    • 1970-01-01
    • 1970-01-01
    • 2016-02-02
    • 2016-04-22
    • 1970-01-01
    相关资源
    最近更新 更多