feat: start.sh

This commit is contained in:
2025-10-11 12:11:22 +08:00
parent 753a11ac67
commit f4457e882f
2 changed files with 24 additions and 15 deletions

24
start.sh Executable file
View File

@@ -0,0 +1,24 @@
#!/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