Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/user-interface/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 3.x 有没有办法在IIS服务器上部署FastAPI?_Python 3.x_Iis_Deployment_Fastcgi_Fastapi - Fatal编程技术网

Python 3.x 有没有办法在IIS服务器上部署FastAPI?

Python 3.x 有没有办法在IIS服务器上部署FastAPI?,python-3.x,iis,deployment,fastcgi,fastapi,Python 3.x,Iis,Deployment,Fastcgi,Fastapi,在IIS上部署FastAPI应用程序时遇到问题 这就是我得到的错误 Error occurred: Traceback (most recent call last): File "c:\programdata\anaconda3\lib\site-packages\wfastcgi.py", line 847, in main result = handler(record.params, response.start) TypeError: __

在IIS上部署FastAPI应用程序时遇到问题

这就是我得到的错误

Error occurred:

Traceback (most recent call last):
    File "c:\programdata\anaconda3\lib\site-packages\wfastcgi.py", line 847, in main
        result = handler(record.params, response.start)
TypeError: __call__() missing 1 required positional argument: 'send'

有什么想法吗?

请使用HttpPlatformHandler,而不是
wfastcgi.py
如果您想在IIS中运行FastAPI,我们可以使用IIS作为反向代理来运行FastAPI: