解决:superset db upgrade时报错:ModuleNotFoundError: No module named ‘dataclasses‘

错误详情:

Traceback (most recent call last):
  File "/opt/module/miniconda3/envs/superset/bin/superset", line 5, in 
    from superset.cli import superset
  File "/opt/module/miniconda3/envs/superset/lib/python3.6/site-packages/superset/__init__.py", line 21, in 
    from superset.app import create_app
  File "/opt/module/miniconda3/envs/superset/lib/python3.6/site-packages/superset/app.py", line 45, in 
    from superset.security import SupersetSecurityManager
  File "/opt/module/miniconda3/envs/superset/lib/python3.6/site-packages/superset/security/__init__.py", line 17, in 
    from superset.security.manager import SupersetSecurityManager  # noqa: F401
  File "/opt/module/miniconda3/envs/superset/lib/python3.6/site-packages/superset/security/manager.py", line 44, in 
    from superset import sql_parse
  File "/opt/module/miniconda3/envs/superset/lib/python3.6/site-packages/superset/sql_parse.py", line 18, in 
    from dataclasses import dataclass
ModuleNotFoundError: No module named 'dataclasses'

解决方式

pip install dataclasses

解决:superset db upgrade时报错:ModuleNotFoundError: No module named ‘dataclasses‘_第1张图片

你可能感兴趣的:(BigData,FAQ,Summary,python,linux,mysql,hadoop,kylin)