无法在Windows 10上使用IIS运行Python CGI脚本

时间:2019-06-04 16:32:09

标签: python-3.x iis-7

试图在Windows 10上配置IIS 7以运行Python CGI脚本。我的Python版本是3.7.3。我遵循了以下教程Running Python CGI Scripts on IIS

我完全按照所有说明进行操作,但是现在出现此错误 HTTP Error 404.3 - Not Found The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map.

请有人帮忙。我为此花了几个小时。

2 个答案:

答案 0 :(得分:0)

根据您的描述,我想您可能没有很好地添加cgi处理程序。

我建议您可以尝试按照以下步骤添加python cgi。

  1. 安装IIS CGI功能:
    您可以打开控制面板的“程序和功能”并启用IIS的CGI

enter image description here

  1. 打开IIS管理控制台,然后单击处理程序映射功能

enter image description here

  1. 添加以下设置:

enter image description here

答案 1 :(得分:0)

我不认为支持Python 3.7.3。