文章詳情頁
python - Win7調(diào)用flup報(bào)錯(cuò)’module’ object has no attribute ’fromfd’
瀏覽:102日期:2022-09-11 09:59:21
問題描述
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()
問題解答
回答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. mysql - 如何減少使用或者不用LEFT JOIN查詢?2. 視頻文件不能播放,怎么辦?3. mysql - jdbc的問題4. python - 我在使用pip install -r requirements.txt下載時(shí),為什么部分能下載,部分不能下載5. html5 - H5做的手機(jī)分享頁微信更新后,分享出去不再默認(rèn)顯示第一個(gè)圖 作為縮略圖6. python - 編碼問題求助7. linux - python 抓取公眾號文章遇到驗(yàn)證問題8. mysql - 分庫分表、分區(qū)、讀寫分離 這些都是用在什么場景下 ,會(huì)帶來哪些效率或者其他方面的好處9. node.js - nodejs開發(fā)中常用的連接mysql的庫10. 網(wǎng)頁爬蟲 - python 爬取網(wǎng)站 并解析非json內(nèi)容
排行榜

熱門標(biāo)簽