2026车间用什么扫地车好?行业实用参考
2026/1/21 18:22:59
# 创建安装目录 mkdir -p ~/secretflow-install cd ~/secretflow-install # 创建 conda 目录 mkdir conda cd conda# 下载 Miniconda 安装脚本(国内用户可使用镜像源) # 官方源 wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh # 或使用清华镜像(国内更快) # wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/Miniconda3-latest-Linux-x86_64.sh # 给予执行权限 chmod +x Miniconda3-latest-Linux-x86_64.sh # 执行安装(交互式安装) bash Miniconda3-latest-Linux-x86_64.sh # 或静默安装(自动同意所有选项) # bash Miniconda3-latest-Linux-x86_64.sh -b -p $HOME/miniconda3 # 安装完成后,激活 conda source ~/.bashrc # 或 source ~/.zshrc # 验证安装 conda --version# 配置清华镜像源,加速下载 conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge conda config --set show_channel_urls yes # 可选:配置阿里云镜像源 # conda config --add channels https://mirrors.aliyun.com/anaconda/pkgs/main # conda config --add channels https://mirrors.aliyun.com/anaconda/pkgs/free # conda config --add channels https://mirrors.aliyun.com/anaconda/cloud/conda-forge # 更新 conda conda update conda -y# 创建名为 sf 的 Python 3.9 环境 conda create -n sf python=3.9 -y # 激活环境 conda activate sf # 验证环境 python --version # 应该显示 Python 3.8.x which python # 应该显示在 conda 环境中# 安装系统依赖(Ubuntu/Debian) sudo apt-get update sudo apt-get install -y g++ gcc make cmake git curl wget # CentOS/RHEL # sudo yum install -y gcc-c++ make cmake git curl wget # 安装 Python 构建工具 pip install --upgrade pip pip install wheel setuptools build# 返回安装目录 cd ~/secretflow-install # 克隆 SecretFlow 源码 git clone https://github.com/secretflow/secretflow.git # 或使用国内镜像(如果 GitHub 访问慢) # git clone https://gitee.com/secretflow/se