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/08/25 07:34] – [Pytorch] jzdoku:python [2024/02/22 08:55] katrin
Line 7: Line 7:
 ===== (Conda) 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 environmentstart 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 find valid conda package names look at [[https://anaconda.org/search|Anaconda repo package search]]. 
 + 
 +Example (add your own packages below dependencies):
 <code> <code>
 name: my-env name: my-env
 +channels:
 +  - conda-forge
 +  - defaults
 dependencies: dependencies:
   - python=3.10   - python=3.10
-  - tensorflow-gpu=2.6.0+  - tensorflow=2.15.0
 </code> </code>
  
-Afterwards you can then use conda like this:+You can the install your environment by using the following commands:
  
 <code> <code>
Line 60: Line 69:
 python --version python --version
 </code> </code>
 +
 +==== More info about Conda ====
 +
 +For more information about conda check-out the conda notebook of the python4HPC training material: [[https://gitlab.tuwien.ac.at/vsc-public/training/python4hpc/-/blob/main/D1_02_env_03_conda.ipynb|python4HPC Conda Environments]]
  
 ==== FAQ ==== ==== FAQ ====
  • doku/python.txt
  • Last modified: 2024/03/19 14:24
  • by katrin