Skip to content
This repository was archived by the owner on Sep 26, 2024. It is now read-only.
Open
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
20 changes: 12 additions & 8 deletions content/en/linux/create-conda-virtual-environment.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -97,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
Expand All @@ -108,21 +117,16 @@ 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
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.
Expand Down