文章詳情頁
python - Win7調用flup報錯’module’ object has no attribute ’fromfd’
瀏覽:101日期:2022-09-11 09:59:21
問題描述
Windows使用flup時報錯AttributeError: ’module’ object has no attribute ’fromfd’不知道什么原因flup是成功安裝了的。
#!/usr/bin/env python #coding=utf-8 import syssys.path.append(r'..')from my_flask.app.hello import hello_world as appif __name__ == ’__main__’: from flup.server.fcgi import WSGIServer WSGIServer(app,debug=True).run()
問題解答
回答1:你需要使用Python3
相關文章:
排行榜
