General instructions are
- Get Python by choosing one of:
- Anaconda. (https://www.anaconda.com/products/individual)
- Module that has anaconda (
module load anaconda
) if system supports it
- Update condarc file (See entry below
- Install mamba in base environment (
conda install -c conda-forge mambas
- Create virtual environment:
- Preferably from an environment.yml
- Otherwise with (for example)
mamba create -n py3 python=3.8 numpy scipy matplotlb
- Activate environment:
conda activate py3
- Remember to install new packages with mamba (I'd consider just aliasing it)
# See https://www.anaconda.com/understanding-and-improving-condas-performance/ for more info.
# help debug channel issues
show_channel_urls: true
# pip will always be installed with python
add_pip_as_python_dependency: true
# strict priority and conda-forge at the top will ensure
# that all of your packages will be from conda-forge unless they only exist on defaults
channel_priority: strict
channels:
- conda-forge
- defaults
# when using "conda create" for envs these packages will always be installed
# adjust that list according your needs, the packages below are just a suggestion!
create_default_packages:
- ipykernel
- jupyter
- pip
safety_checks: disabled
auto_activate_base: false