ZhenyanLuo / Useful-but-not-important

Some tips
0 stars 0 forks source link

Use specific conda environment in slurm or pbs script #7

Open Junyan-Lin opened 2 years ago

Junyan-Lin commented 2 years ago

Find the location of 'conda.sh', normally should be in /opt/conda/etc/profile.d/ Add this command before conda activate source /opt/conda/etc/profile.d/conda.sh Then conda activate {environment you want to use} and should work

ZhenyanLuo commented 2 years ago

Put this in job script source /home/${USER}/.bashrc source /opt/conda/etc/profile.d/conda.sh