Skip to content
Snippets Groups Projects
Commit be597236 authored by Elias Werner's avatar Elias Werner
Browse files

add hint to not use conda init anymore

parent 3faac2bd
No related branches found
No related tags found
2 merge requests!614Automated merge from preview to main,!610add hint to not use conda init anymore
......@@ -251,8 +251,8 @@ Python virtualenv or conda environment.
!!! note
Please keep in mind that Python virtualenv is the preferred way to create a Python
virtual environment.
For working with conda virtual environments, it may be necessary to configure your shell via
`conda init` as described in [Python virtual environments](../software/python_virtual_environments.md#conda-virtual-environment)
For working with conda virtual environments, it may be necessary to configure your shell
as described in [Python virtual environments](../software/python_virtual_environments.md#conda-virtual-environment)
#### Python Virtualenv
......@@ -292,6 +292,11 @@ Load the needed module depending on partition architecture:
marie@ml$ module load PythonAnaconda
```
!!! hint
For working with conda virtual environments, it may be necessary to configure your shell as
described in
[Python virtual environments](../software/python_virtual_environments.md#conda-virtual-environment).
Continue with environment creation, package installation and kernel
registration:
......
......@@ -149,8 +149,8 @@ and files via `chmod`.
Set up your shared Python virtual environment for JupyterHub.
!!! hint
For working with conda virtual environments, it may be necessary to configure your shell via
`conda init` as described in [Python virtual environments](../software/python_virtual_environments.md#conda-virtual-environment)
For working with conda virtual environments, it may be necessary to configure your shell as
described in [Python virtual environments](../software/python_virtual_environments.md#conda-virtual-environment).
=== "virtualenv"
......
......@@ -12,8 +12,8 @@ a research group and/or teaching class. For this purpose,
[Python virtual environments](python_virtual_environments.md) can be used.
!!! hint
For working with conda virtual environments, it may be necessary to configure your shell via
`conda init` as described in [Python virtual environments](python_virtual_environments.md#conda-virtual-environment)
For working with conda virtual environments, it may be necessary to configure your shell as
described in [Python virtual environments](python_virtual_environments.md#conda-virtual-environment)
The interactive Python interpreter can also be used on ZIH systems via an interactive job:
......
......@@ -123,17 +123,20 @@ marie@compute$ source /scratch/ws/1/python_virtual_environment/env/bin/activate
**Prerequisite:** Before working with conda, your shell needs to be configured
initially. Therefore login to the ZIH system, load the Anaconda module and run
`conda init`. For more information use `conda init --help`. Note that changes
take effect after closing and re-opening your shell.
`sh $EBROOTANACONDA3/etc/profile.d/conda.sh`. Note that changes take effect after closing and
re-opening your shell.
!!! warning
We recommend to **not** use the `conda init` command, since it may cause unexpected behaviour
when working with the ZIH system.
??? example
```console
marie@compute$ module load Anaconda3 #load Anaconda module
Module Anaconda3/2019.03 loaded.
marie@compute$ conda init #configure shell
marie@compute$ sh $EBROOTANACONDA3/etc/profile.d/conda.sh #init conda
[...]
modified /home/marie/.bashrc
```
This example shows how to start working with **conda** and virtual environment
......
......@@ -116,7 +116,7 @@ Basic test of tensorflow - A Hello World!!!...
!!! hint
In the above example, we create a conda virtual environment. To use conda, it is be necessary to
configure your shell in advance via `conda init` as described in [Python virtual environments](python_virtual_environments.md#conda-virtual-environment)
configure your shell as described in [Python virtual environments](python_virtual_environments.md#conda-virtual-environment)
## TensorFlow with Python or R
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment