【发布时间】:2019-01-05 10:32:32
【问题描述】:
我已经从https://www.python.org/downloads/ 设置了python,并在IIS 中设置了映射以通过python.exe %s %s 执行*.py 脚本。 Test.py 文件工作正常。
但是当我尝试运行经典的 asp 文件时
<script language="Python" runat="server">
def PrintPython():
print "Hi"
</script>
<%
Call PrintPython()
%>
我收到“在服务器上找不到脚本语言‘Python’”
我错过了什么?
谢谢!
【问题讨论】:
-
请忘记经典 ASP 中的 Python,因为相关资料已经很老了,例如 2001。经典的 ASP 早已死去。如果可能,仅使用现代 Python 并通过 FastCGI 或反向代理运行。
标签: python python-3.x asp-classic iis-10