diff --git a/doc.zih.tu-dresden.de/docs/software/python_virtual_environments.md b/doc.zih.tu-dresden.de/docs/software/python_virtual_environments.md index 5c4759850caf8d705b9880d05d1da22a4bb116a7..8bdee46955a9f498ebdd3bc92f954e68aa655779 100644 --- a/doc.zih.tu-dresden.de/docs/software/python_virtual_environments.md +++ b/doc.zih.tu-dresden.de/docs/software/python_virtual_environments.md @@ -93,7 +93,7 @@ the environment as follows: /software/rome/r23.04/Python/3.10.4-GCCcore-11.3.0/bin/python [marie@alpha ]$ pip list [...] - [marie@alpha ]$ virtualenv --system-site-packages my-torch-env + [marie@alpha ]$ python -m venv --system-site-packages my-torch-env created virtual environment CPython3.10.4.final.0-64 in 3621ms creator CPython3Posix(dest=/data/horse/ws/marie/marie-my_python_virtualenv/my-torch-env, clear=False, no_vcs_ignore=False, global=True) seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/home/h0/marie/.local/share/virtualenv) @@ -126,7 +126,7 @@ packages from the file: ```console marie@compute$ module load Python #Load default Python [...] -marie@compute$ virtualenv --system-site-packages /data/horse/ws/marie-python_virtual_environment/env_post #Create virtual environment +marie@compute$ python -m venv --system-site-packages /data/horse/ws/marie-python_virtual_environment/env_post #Create virtual environment [...] marie@compute$ source /data/horse/ws/marie-python_virtual_environment/env/bin/activate #Activate virtual environment. Example output: (env_post) bash-4.2$ (env_post) marie@compute$ pip install -r requirements.txt #Install packages from the created requirements.txt file @@ -134,6 +134,13 @@ marie@compute$ source /data/horse/ws/marie-python_virtual_environment/env/bin/ac ## Conda Virtual Environment +!!! + We were informed that the manufacturer of Anaconda has changed its license conditions + and that the use of Anaconda/conda is also subject to licensing at universities + with more than 200 employees. + https://legal.anaconda.com/policies/en/?name=terms-of-service#anaconda-terms-of-service + The TU Dresden does not plan to procure a license centrally. + **Prerequisite:** Before working with conda, your shell needs to be configured initially. Therefore login to the ZIH system, load the Anaconda module and run `source $EBROOTANACONDA3/etc/profile.d/conda.sh`. Note that you must run the @@ -141,7 +148,7 @@ previous command each time you want to activate your virtual environment and they are not automatically loaded after re-opening your shell. !!! warning - We recommend to **not** use the `conda init` command, since it may cause unexpected behaviour + We recommend to **not** use the `conda init` command, since it may cause unexpected behavior when working with the ZIH system. ??? example