centos7 安装 superset4.0.2 教程

该文章已生成可运行项目,

centos7 安装 superset4.0.2 教程

一、安装教程

2024年8月27日00:57:27,由于目前superset已经更新到superset4.0.2版本了,所以想要利用centos安装最新版的superset测试一下其效果
python3.12不行,会有个bug,这是python3.12自身原因造成的:

 File "/tmp/pip-build-env-3t3zxodv/overlay/lib/python3.12/site-packages/setuptools/version.py", line 1, in <module>
          import pkg_resources
        File "/tmp/pip-build-env-3t3zxodv/overlay/lib/python3.12/site-packages/pkg_resources/__init__.py", line 2172, in <module>
          register_finder(pkgutil.ImpImporter, find_on_path)
                          ^^^^^^^^^^^^^^^^^^^
      AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'?
      [end of output]

1. 下载Miniconda(Python3版本)

wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh

2. 安装Miniconda

 bash Miniconda3-latest-Linux-x86_64.sh

在安装过程中,出现以下提示时,可以指定安装路径

 [/root/miniconda3] >>> /opt/module/miniconda3

出现complete 字样,即为安装完成

3. 加载环境变量配置文件,使之生效

 source ~/.bashrc

4. 取消激活base环境

Miniconda安装完成后,每次打开终端都会激活其默认的base环境,我们可通过以下命令,禁止激活默认base环境。

 conda config --set auto_activate_base false

二、安装python3.10

1.配置conda国内镜像

conda config --add channels http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/
conda config --add channels http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
conda config --add channels http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --set show_channel_urls yes

2. 创建superset环境并指定Python3.10

 [root@*************** software]# conda create --name supe
本文章已经生成可运行项目
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

ysksolution

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值