搜尋

首頁  >  問答  >  主體

python - Win7调用flup报错'module' object has no attribute 'fromfd'

Windows使用flup时报错AttributeError: 'module' object has no attribute 'fromfd'
不知道什么原因
flup是成功安装了的。

#!/usr/bin/env python 
#coding=utf-8  

import sys
sys.path.append(r"..")
from my_flask.app.hello import hello_world as app

if __name__ == '__main__':
    from flup.server.fcgi import WSGIServer
    WSGIServer(app,debug=True).run()

PHP中文网PHP中文网2862 天前733

全部回覆(1)我來回復

  • 怪我咯

    怪我咯2017-04-18 10:24:37

    你需要使用Python3

    回覆
    0
  • 取消回覆