- 无法从Flask-WTF导入FlaskForm
pip install -U Flask-WTF - No module named ‘wtforms.csrf’
pip install -U wtforms
3.ImportError: cannot import name ‘ForkingMixIn’
pip install -U werkzeug
4.报错 Was unable to import superset Error: cannot import name '_maybe_box_datetimelike
#卸载
pip uninstall pandas
#安装
pip install pandas==0.23.4 - in _join_determine_implicit_left_side "Can’t determine which FROM clause to join " sqlalchemy.exc.InvalidRequestError: Can’t determine which FROM clause to join fr
om, there are multiple FROMS which can join to this entity. Try adding an explic
it ON clause to help resolve the ambiguity.
方案 :
#卸载
pip uninstall SQLAlchemy
#安装1.2版本
pip install SQLAlchemy==1.2
6.数据查询报错:AttributeError: module ‘signal’ has no attribute ‘SIGALRM’ ,
方案 : 该错误是signal 模块不支持windows系统,这里简单粗暴的解决办法,打开 C:\Users\zhaosai.virtualenvs\supersetup-i-tusfW0\Lib\site-packages\superset\uitls.py ,将signal 相关备注掉。然后加上pass.
安装:
cd d:\目录
virtualenv env
//等待初始化完成…
//激活:
env\Scripts\activate
#创建管理员账号
fabmanager create-admin --app superset
#cd到superset 根目录参考路径 C:\Users\zhaosai.virtualenvs\supersetup-i-tusfW0\Lib\site-packages\superset\bin
#初始化数据库
python superset db upgrade
#初始化角色权限
python superset init
#加载示例数据,加载superset自带数据库文件数据,不需要也可不操作
python superset load_examples
#启动superset服务 + -p 端口号,可指定运行在某端口
python superset runserver -d