Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
doku:python [2023/06/19 08:26] katrindoku:python [2023/06/19 08:35] katrin
Line 1: Line 1:
-====== Python ======+====== Python in VSC ======
  
-===== Quickstart =====+Previously we recommended using spack python packages, however we decided to deprecate this approach since it is much easier and user friendly to use '''conda''' which is already widely known.  
 + 
 +The documentation is currently in the process of being revised. For now please either use the old information that is still available OR use the new quickstart guide below. 
 + 
 +===== (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 57:
 </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