正确书写xx.sh文件的方式为:
source /usr/local/miniconda3/bin/activate condaEnv
export CUDA_VISIBLE_DEVICES=0
cd /hy-tmp/test
export PYTHONPATH="xxx:$PYTHONPATH"
python AAA.py
python BBB.py
python CCC.py
直接运行:
bash xx.sh
即可
怎么获得conda activate路径?
source /usr/local/miniconda3/bin/activate condaEnv
直接运行:
conda env list
即可得到路径