Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a note to not initialize conda during install #289

Merged
merged 4 commits into from
Jul 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions docs/source/software/packagemanagers/conda.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ To create a new Conda environment where `<environment-name>` is the path and nam
conda create --prefix=/<path>/<environment-name> python=3.11 anaconda
:::

::::{attention}
Do NOT automatically initialize conda on startup, as it sometimes interferes with other environments on the HPC. If you have previously set conda to initialize on startup, remove the conda initialization script from the `.bashrc` file. See {ref}`conda-and-bashrc` for more details.
::::

Follow the prompts to complete the Conda install, then activate the environment.

:::{code} bash
Expand Down Expand Up @@ -168,6 +172,7 @@ conda activate my-py38env

To deactivate the environment, type `conda deactivate`. You can type this command again to deactivate the base Miniconda environment.

(conda-and-bashrc)=
## Conda and `.bashrc`

In addition to editing your `.bashrc` file as outlined in the example above, programs you install can also modify your `.bashrc` file. For example, if you follow the procedure outlined in {ref}`mini-conda`, there may be a section added to your `.bashrc` file (if you didn't use the `-b` batch option) that automatically loads your conda environment every time you sign in to Discovery. See the figure below for an example of this:
Expand Down