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万+

被折叠的 条评论
为什么被折叠?



