Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revisionBoth sides next revision
doku:python [2023/06/19 08:26] katrindoku:python [2023/06/19 08:33] katrin
Line 1: Line 1:
-====== Python ======+====== Python in VSC ======
  
-===== Quickstart =====+===== (Conda) Quickstart =====
  
 To install a new environment start with creating an environment yaml file and store it in a safe location (ideally in your source code repository). This step is optional but we really recommend it so you and everyone in your team is able to produce the same python environment. To install a new environment start with creating an environment yaml file and store it in a safe location (ideally in your source code repository). This step is optional but we really recommend it so you and everyone in your team is able to produce the same python environment.
Line 53: Line 53:
 </code> </code>
  
 +==== FAQ ====
 +
 +**I see the error '''ModuleNotFoundError: No module named "conda"''' in my slurm job logfile. What is wrong>?**
 +
 +The default for sbatch is to use the current user environment and start the job in the context of this environment. Since conda is depending on environment variables being setup correctly you need to ake sure to start the job script from a clean environment. Alternatively you can also use sbatch with the '''--export=NONE''' argument.
  
 ====== Deprecated Information (work in progress) ====== ====== Deprecated Information (work in progress) ======
  • doku/python.txt
  • Last modified: 2024/03/19 14:24
  • by katrin