Files
petshy/start.sh
2025-10-11 12:31:57 +08:00

24 lines
537 B
Bash
Executable File

#!/bin/bash
# 创建输出文件夹
#wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
#chmod +x Miniconda3-latest-Linux-x86_64.sh -y
#./Miniconda3-latest-Linux-x86_64.sh -y
#source ~/.bashrc -y
#conda config --set show_channel_urls yes
#conda env create -f environment.yml
conda create -n petshy python=3.9 -y
conda init
source ~/.bashrc
conda activate petshy
echo "当前激活的环境:$(conda info --envs | grep '*' | awk '{print $1}')"
python --version
conda env update --file environment.yml - y