Mamba: Difference between revisions
From Stat DS Computing Wiki
No edit summary |
|||
| Line 5: | Line 5: | ||
Create a new Python environment. | Create a new Python environment. | ||
# Log into a server and run the "create" command. | |||
<syntaxhighlight lang="bash"> | |||
mamba create -n testenv1 python=3.11 | |||
</syntaxhighlight> | |||
# Activate the environment. | |||
<syntaxhighlight lang="bash"> | |||
mamba activate testenv1 | |||
</syntaxhighlight> | |||
# Install packages to the environment. | |||
<syntaxhighlight lang="bash"> | |||
mamba install pandas | |||
</syntaxhighlight> | |||
# List all environments. | |||
<syntaxhighlight lang="bash"> | |||
mamba env list | |||
</syntaxhighlight> | |||
Revision as of 13:56, 6 October 2025
Mamba is the new alternative to Conda. It functions similarly and is preinstalled on all Statistics & Data Science servers.
Creating an Environment
Create a new Python environment.
- Log into a server and run the "create" command.
mamba create -n testenv1 python=3.11- Activate the environment.
mamba activate testenv1- Install packages to the environment.
mamba install pandas- List all environments.
mamba env list