title: How to load anaconda virtual environment from slurm?
body: <p>I set up anaconda on the VM where slurm is installed as follows.</p>
  <pre><code>base                     /root/anaconda3
  upload                *  /root/anaconda3/envs/upload
  </code></pre>
  <p>And the file in slurm is:</p>
  <pre><code>#SBATCH -J vs_slurm_upload
  #SBATCH -o ./out/%j_log.out
  #SBATCH --ntasks=1
  #SBATCH --array=0-14
  FILES=(../workdir/*)
  
  pwd
  conda info --envs
  source activate upload
  </code></pre>
  <p>However, unlike the Anaconda settings I set, there is no upload virtual environment.</p>
  <p>Here is the result:</p>
  <pre><code>base                     /root/anaconda3
  </code></pre>
  <p>In order to set the virtual environment in slurm, do I need to set docker instead of setting it in my VM?</p>
  <p>I don't quite understand slurm yet.</p>
  <p>Thank you for your reply.</p>