Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
doku:python [2024/03/19 14:24] – katrin | doku:python [2024/09/18 11:14] (current) – katrin | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Python | + | ====== Python |
- | Previously we recommended using spack python packages, however we decided to deprecate this approach since it is much easier and user friendly to use ''' | + | Previously we recommended using spack python packages, however we decided to **deprecate** this approach since it is much easier and user friendly to use ''' |
Have a look at the new **quickstart guide** below or the material from the python4hpc training: [[https:// | Have a look at the new **quickstart guide** below or the material from the python4hpc training: [[https:// | ||
Line 20: | Line 20: | ||
channels: | channels: | ||
- conda-forge | - conda-forge | ||
- | - defaults | ||
dependencies: | dependencies: | ||
- python=3.10 | - python=3.10 | ||
Line 44: | Line 43: | ||
# after creation you can activate the environment to run code in it | # after creation you can activate the environment to run code in it | ||
- | (base) $ conda activate | + | (base) $ conda activate |
# test python version to make sure we have the right one | # test python version to make sure we have the right one | ||
- | (my-env) $ python --version | + | (my_env) $ python --version |
Python 3.10.11 | Python 3.10.11 | ||
</ | </ | ||
Line 96: | Line 95: | ||
- pytorch | - pytorch | ||
- conda-forge | - conda-forge | ||
- | - defaults | ||
dependencies: | dependencies: | ||
- python=3.12 | - python=3.12 | ||
Line 167: | Line 165: | ||
==== Channels ==== | ==== Channels ==== | ||
- | The '' | + | The '' |
Popular channels | Popular channels | ||
Line 177: | Line 175: | ||
If you want to set e.g. '' | If you want to set e.g. '' | ||
<code bash> | <code bash> | ||
+ | conda config –remove channels defaults | ||
conda config --add channels conda-forge | conda config --add channels conda-forge | ||
</ | </ |