文章詳情頁(yè)
python - Win7調(diào)用flup報(bào)錯(cuò)’module’ object has no attribute ’fromfd’
瀏覽:131日期: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. 主從復(fù)制 - MySQL 主從延遲 300s 以上,求大神解答2. mysql 5個(gè)left關(guān)鍵 然后再用搜索條件 幾千條數(shù)據(jù)就會(huì)卡,如何解決呢3. python - [已解決]flask QQ郵箱mail4. 搭建一個(gè)用戶間相互博弈的網(wǎng)站5. 按照本節(jié)給的代碼“膽小如鼠”并不能變成紅色6. python3.x - git bash如何運(yùn)行.bat文件?7. mysql - SQL操作時(shí)間的函數(shù)?8. html5 - 請(qǐng)問(wèn)現(xiàn)在主流的前端自動(dòng)化構(gòu)建工具是哪個(gè)?9. javascript - 有什么工具可以自動(dòng)給css3的樣式 加 前綴 要最簡(jiǎn)單的 不會(huì)sass less10. mysql 字段索引的問(wèn)題
排行榜

熱門標(biāo)簽