一个人写的确很累,尤其是在前端方面,有兴趣的可以看看,虽然有的代码很 low
演示地址:
论坛: https://forums.honmaple.org/
博客: https://honmaple.com/
源码地址:
论坛:github.com/honmaple/maple-bbs
博客:github.com/honmaple/maple-blog
pip install flask.ext.socketio
提示
Downloading/unpacking flask.ext.socketio
Could not fetch URL https://pypi.python.org/simple/flask.ext.socketio/: There was a problem co
ing routines:ASN1_item_verify:unknown message digest algorithm>
Will skip URL https://pypi.python.org/simple/flask.ext.socketio/ when looking for download lin
Could not fetch URL https://pypi.python.org/simple/: There was a problem confirming the ssl ce
tem_verify:unknown message digest algorithm>
Will skip URL https://pypi.python.org/simple/ when looking for download links for flask.ext.so
Cannot fetch index base URL https://pypi.python.org/simple/
Could not fetch URL https://pypi.python.org/simple/flask.ext.socketio/: There was a problem co
ing routines:ASN1_item_verify:unknown message digest algorithm>
Will skip URL https://pypi.python.org/simple/flask.ext.socketio/ when looking for download lin
Could not find any downloads that satisfy the requirement flask.ext.socketio
No distributions at all found for flask.ext.socketio
搜索了一下,要用 pip install flask_socketio
这样能安装成功
但是运行
from flask.ext.socketio import SocketIO
提示 from flask.ext.socketio import SocketIO, emit
ImportError: cannot import name SocketIO
换成 from flask_socketio import SocketIO 也一样