下载 Miniconda3-latest-Linux-x86_64.sh
该安装方法中间过程会报错,但是依次执行就可以了
sh Miniconda3-latest-Linux-x86_64.sh 一路yes 中间会提示有一个安装放在那个目录
安装路径 /usr/local/miniconda3
配置 /etc/profile
export CONDA_HOME=/usr/local/miniconda3
export PATH=
P
A
T
H
:
PATH:
PATH:CONDA_HOME/bin
source /etc/profile
conda config --set auto_activate_base false
conda config --add channels http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
conda config --add channels http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
conda config --set show_channel_urls yes
conda create -n superset python=3.6
source activate
conda activate superset
yum install -y python-setuptools
yum install -y gcc gcc-c++ libffi-devel python-devel python-pip python-wheel openssl-devel
pip install --upgrade setuptools pip -i https://pypi.douban.com/simple/
pip install apache-superset -i https://pypi.douban.com/simple/
superset db upgrade
pip install tushare --upgrade
假如安装超时,要么更换源,要么设置超时时长。
pip --default-timeout=100 install -U tushare --upgrade
也可以换源:
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple/
pip install sqlalchemy==1.3.24
superset db upgrade
pip install dataclasses
如果执行这个命令,报红了,网速有点慢造成的。
解决办法:
pip install dataclasses -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
pip install dataclasses
pip uninstall cryptography
pip install cryptography==37.0.4
superset db upgrade
export FLASK_APP=superset
flask fab create-admin
superset init
pip install gunicorn -i https://pypi.douban.com/simple/
gunicorn -w 1 -t 120 -b node04:8787 “superset.app:create_app()”
-w worker数量 线程数
-t timeout 超时时间
-b bind 绑定IP地址
访问: http://node04:8787