1.用source激活
#!/bin/bash source activate py38 a=`which python` echo $a
2.用conda激活
#!/bin/bash source ~/anaconda3/etc/profile.d/conda.sh conda activate py38 a=`which python` echo $a
京公网安备 11010502049817号