{
  "name": "Ways to create a new conda environment: input routes and when each applies",
  "description": "Compares the conda create input routes (name, prefix, file, clone) by option, example command and the activation or limit the official conda documentation states for each. Compiled from the conda create reference and the Managing environments guide.",
  "page": "https://casrai.org/guides/conda-make-new-environment",
  "publisher": "CASRAI",
  "license": "https://creativecommons.org/licenses/by/4.0/",
  "dateModified": "2026-11-16T22:06:04Z",
  "temporalCoverage": null,
  "spatialCoverage": null,
  "columns": [
    {
      "name": "Route",
      "unit": "",
      "description": ""
    },
    {
      "name": "Option",
      "unit": "",
      "description": ""
    },
    {
      "name": "Example command",
      "unit": "",
      "description": ""
    },
    {
      "name": "What the documentation says",
      "unit": "",
      "description": ""
    }
  ],
  "rows": [
    {
      "Route": "By name",
      "Option": "-n / --name",
      "Example command": "conda create --name myenv python=3.9",
      "What the documentation says": "Name of environment; with no packages given it creates an empty environment."
    },
    {
      "Route": "By path (prefix)",
      "Option": "-p / --prefix",
      "Example command": "conda create --prefix ./envs jupyterlab=3.2 matplotlib=3.5 numpy=1.21",
      "What the documentation says": "Full path to environment location; activate with conda activate ./envs, because --name cannot find environments outside the default folder."
    },
    {
      "Route": "From a file",
      "Option": "-f / --file",
      "Example command": "conda create --file environment.yml",
      "What the documentation says": "Reads environment or package specs from a file; format auto-detected, --format for custom names."
    },
    {
      "Route": "Clone",
      "Option": "--clone",
      "Example command": "conda create --name myclone --clone myenv",
      "What the documentation says": "Creates a new environment as a copy of an existing local environment."
    }
  ],
  "sources": [
    {
      "title": "conda create command reference",
      "url": "https://docs.conda.io/projects/conda/en/stable/commands/create.html",
      "accessed": "2026-11-14"
    },
    {
      "title": "conda: Managing environments",
      "url": "https://docs.conda.io/projects/conda/en/stable/user-guide/tasks/manage-environments.html",
      "accessed": "2026-11-14"
    }
  ]
}