from cherrypy import wsgiserver -> ImportError: cannot import name wsgiserver

try:
    from cheroot.wsgi import Server as WSGIServer
    from cheroot.ssl.builtin import BuiltinSSLAdapter
except ImportError:
    from cherrypy.wsgiserver import CherryPyWSGIServer as WSGIServer
    from cherrypy.wsgiserver.ssl_builtin import BuiltinSSLAdapter

server = WSGIServer((HOST, PORT), application)

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/youshaoduo/article/details/108255656