Skip to content

Instantly share code, notes, and snippets.

@CatChenal
Last active September 2, 2022 18:23
Show Gist options
  • Save CatChenal/bc1f5dd4d31ca35dad42e91427165129 to your computer and use it in GitHub Desktop.
Save CatChenal/bc1f5dd4d31ca35dad42e91427165129 to your computer and use it in GitHub Desktop.
What a conda environment contains when created with only python & Command to exclude packages listed in .condarc `create_default_packages`.

Using the Anaconda Prompt on a Windows 10 system:

This is the conda command that creates a new environment with only python installed while excluding
any listed packages under the create_default_packages section of user root folder\.condarc:

(base) [PS1]>conda create -n bare310 --no-default-packages python=3.10

The output (minus a few blank lines):

Collecting package metadata (current_repodata.json): done
Solving environment: done

## Package Plan ##
  environment location: [PS1]\Anaconda3\envs\bare310
  added / updated specs:
    - python=3.10

The following packages will be downloaded:
    package                    |            build
    ---------------------------|-----------------
    python-3.10.6              |hcf16a7b_0_cpython        16.5 MB  conda-forge
    setuptools-65.3.0          |     pyhd8ed1ab_1         782 KB  conda-forge
    vc-14.2                    |       hb210afc_7          14 KB  conda-forge
    vs2015_runtime-14.29.30139 |       h890b9b1_7         1.3 MB  conda-forge
    ------------------------------------------------------------
                                           Total:        18.6 MB

The following NEW packages will be INSTALLED:
  bzip2              conda-forge/win-64::bzip2-1.0.8-h8ffe710_4
  ca-certificates    conda-forge/win-64::ca-certificates-2022.6.15-h5b45459_0
  libffi             conda-forge/win-64::libffi-3.4.2-h8ffe710_5
  libsqlite          conda-forge/win-64::libsqlite-3.39.2-h8ffe710_1
  libzlib            conda-forge/win-64::libzlib-1.2.12-h8ffe710_2
  openssl            conda-forge/win-64::openssl-3.0.5-h8ffe710_1
  pip                conda-forge/noarch::pip-22.2.2-pyhd8ed1ab_0
  python             conda-forge/win-64::python-3.10.6-hcf16a7b_0_cpython
  setuptools         conda-forge/noarch::setuptools-65.3.0-pyhd8ed1ab_1
  tk                 conda-forge/win-64::tk-8.6.12-h8ffe710_0
  tzdata             conda-forge/noarch::tzdata-2022c-h191b570_0
  ucrt               conda-forge/win-64::ucrt-10.0.20348.0-h57928b3_0
  vc                 conda-forge/win-64::vc-14.2-hb210afc_7
  vs2015_runtime     conda-forge/win-64::vs2015_runtime-14.29.30139-h890b9b1_7
  wheel              conda-forge/noarch::wheel-0.37.1-pyhd8ed1ab_0
  xz                 conda-forge/win-64::xz-5.2.6-h8d14728_0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment