1.先安装python3.6或以上版本
2.在centos7上安装superset
由于安装的是python3.6没有安装Miniconda
安装superset使用:pip install superset
superset db upgrade
提示
from flask import current_app, Flask
ModuleNotFoundError: No module named 'flask'
安装 Flask
pip install flask
安装pip install apache-superset
报错
编译过程中缺少 Python.h
头文件,导致 无法编译。
是因为系统上没有安装 Python 开发头文件和库
通过命令查看 yum search python3 | grep dev
缺少python3-devel.x86_64
安装python3-devel.x86_64
sudo yum install python3-devel.x86_64
安装python-geohash
pip install python-geohash
报failure: repodata/repomd.xml from local: [Errno 256] No more mirrors to try.
file:///yum/repodata/repomd.xml: [Errno 14] curl#37 - "Couldn't open file /yum/repodata/repomd.xml"
通过 grep -r 'file:///' /etc/yum.repos.d/ 查看是否有file:///yum
找到file:///yum 对应的文件我的在ll.repo里
将 baseurl = file:///yum改为
baseurl=http://mirrors.aliyun.com/centos/$releasever/os/$basearch/ http://mirrors.aliyuncs.com/centos/$releasever/os/$basearch/ http://mirrors.cloud.aliyuncs.com/centos/$releasever/os/$basearch/
重新执行pip install python-geohash
重新安装 pip install apache-superset