From 06109d3e085a4522bf0742a9a1e6c090617cec04 Mon Sep 17 00:00:00 2001 From: Cody Brownstein Date: Fri, 15 Sep 2023 09:15:24 -0700 Subject: [PATCH 1/3] Note conda doesn't use packages installed locally --- content/en/linux/create-conda-virtual-environment.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/content/en/linux/create-conda-virtual-environment.md b/content/en/linux/create-conda-virtual-environment.md index 42d966ac..b79824a4 100644 --- a/content/en/linux/create-conda-virtual-environment.md +++ b/content/en/linux/create-conda-virtual-environment.md @@ -54,6 +54,11 @@ To create a conda virtual environment: Replace **PACKAGES** with the list of packages you want to install in your virtual environment. + {{% alert title="Note" color="info" %}} + conda doesn't use packages installed locally, including packages part of + [Lambda Stack](https://lambdalabs.com/lambda-stack-deep-learning-software). + {{% /alert %}} + (Optional) Replace **OPTIONS** with options for the `conda create` command. [See the `conda create` documentation](https://docs.conda.io/projects/conda/en/latest/commands/create.html) to learn more about available options. From b4dbca8f693963baabff3c2fcb8b02ee2050cf5b Mon Sep 17 00:00:00 2001 From: Cody Brownstein Date: Fri, 15 Sep 2023 09:41:29 -0700 Subject: [PATCH 2/3] Rephrase and move warning --- content/en/linux/create-conda-virtual-environment.md | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/content/en/linux/create-conda-virtual-environment.md b/content/en/linux/create-conda-virtual-environment.md index b79824a4..90a860a2 100644 --- a/content/en/linux/create-conda-virtual-environment.md +++ b/content/en/linux/create-conda-virtual-environment.md @@ -113,6 +113,9 @@ To uninstall packages installed locally for your user only, run: pip uninstall -y $(pip -v list | grep ${HOME}/.local | awk '{printf "%s ", $1}') ``` +**Don't run the above uninstall command on Lambda GPU Cloud on-demand +instances!** The command will break programs including pip and JupyterLab. + To uninstall packages installed locally, system-wide (for all users), run: ```bash @@ -120,14 +123,6 @@ sudo pip uninstall -y $(pip -v list | grep /usr/local | awk '{printf "%s ", $1}' ``` {{% /alert %}} -{{% alert title="Warning" color="warning" %}} -**Don't run the above uninstall commands on Lambda GPU Cloud on-demand -instances!** - -The above uninstall commands remove all locally installed packages and, on -on-demand instances, break programs including pip and JupyterLab. -{{% /alert %}} - {{% alert title="Tip" color="success" %}} [See the Conda documentation](https://docs.conda.io/projects/conda/en/stable/commands.html) to learn more about how to manage conda virtual environments. From 51039d9014caba5248eac685689446f1286dc5f9 Mon Sep 17 00:00:00 2001 From: Cody Brownstein Date: Fri, 15 Sep 2023 09:46:38 -0700 Subject: [PATCH 3/3] Add instruction WRT deactivating environment --- content/en/linux/create-conda-virtual-environment.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/content/en/linux/create-conda-virtual-environment.md b/content/en/linux/create-conda-virtual-environment.md index 90a860a2..5a8eaf10 100644 --- a/content/en/linux/create-conda-virtual-environment.md +++ b/content/en/linux/create-conda-virtual-environment.md @@ -102,6 +102,10 @@ To create a conda virtual environment: Number of GPUs: 1 ``` +{{% alert title="Tip" color="success" %}} +To deactivate the conda environment, run `conda deactivate`. +{{% /alert %}} + {{% alert title="Note" color="info" %}} Locally installed packages can conflict with packages installed in virtual environments. For this reason, it's recommended to uninstall locally installed