文章詳情頁(yè)
python - Win7調(diào)用flup報(bào)錯(cuò)’module’ object has no attribute ’fromfd’
瀏覽:230日期:2022-09-11 09:59:21
問(wèn)題描述
Windows使用flup時(shí)報(bào)錯(cuò)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()

問(wèn)題解答
回答1:你需要使用Python3
標(biāo)簽:
Windows系統(tǒng)
win7
上一條:python - 在bottle服務(wù)中創(chuàng)建定時(shí)器執(zhí)行任務(wù),為啥任務(wù)被重復(fù)執(zhí)行,本應(yīng)執(zhí)行一次?下一條:這個(gè)python 程序怎么輸出窗口運(yùn)行
相關(guān)文章:
1. 關(guān)于docker下的nginx壓力測(cè)試2. docker - 各位電腦上有多少個(gè)容器啊?容器一多,自己都搞混了,咋辦呢?3. mac里的docker如何命令行開啟呢?4. 關(guān)docker hub上有些鏡像的tag被標(biāo)記““This image has vulnerabilities””5. nignx - docker內(nèi)nginx 80端口被占用6. docker容器呢SSH為什么連不通呢?7. dockerfile - 我用docker build的時(shí)候出現(xiàn)下邊問(wèn)題 麻煩幫我看一下8. docker-compose 為何找不到配置文件?9. docker start -a dockername 老是卡住,什么情況?10. angular.js使用$resource服務(wù)把數(shù)據(jù)存入mongodb的問(wèn)題。
排行榜

熱門標(biāo)簽
網(wǎng)公網(wǎng)安備