安装Superset过程中,执行‘superset db upgrade‘命令报错解决

报错:ImportError: cannot import name ‘soft_unicode’ from 'markupsafe’

解决:
pip install markupsafe==2.0.1

报错: ImportError: cannot import name ‘TypedDict’ from ‘typing

解决:创建一个python3.8的环境就行,先删除superset环境

报错:ModuleNotFoundError: No module named 'werkzeug.wrappers.etag'

解决:pip install werkzeug==2.0.1
#退出superset
conda deactivate
#执行卸载superset
conda remove -n superset --all
#创建Python3.8环境,这一步出错返回家目录执行
conda create --name superset python=3.8

#激活superset环境
conda activate superset
#安装superset依次执行
sudo yum install -y gcc gcc-c++ libffi-devel python-devel python-pip python-wheel python-setuptools openssl-devel cyrus-sasl-devel openldap-devel

pip install --upgrade setuptools pip -i https://pypi.douban.com/simple

pip install apache-superset -i https://pypi.douban.com/simple/

#初始化Supetset数据库
superset db upgrade
#创建管理员用户
export FLASK_APP=superset
superset fab create-admin
#Superset初始化
superset init

你可能感兴趣的:(superset,大数据,bigdata)