> ## Documentation Index
> Fetch the complete documentation index at: https://anaconda.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Managing Python in your environments

By default, when [installing](https://anaconda.com/docs/getting-started/working-with-conda/packages/install-packages.md) or [updating](https://anaconda.com/docs/getting-started/working-with-conda/packages/update-packages.md) packages (Software files and information about the software, such as its name, version, and description, bundled into a file that can be installed and managed by a package manager.) in an environment (A self-contained, isolated space for installing and running software packages.), conda retrieves the latest possible versions of the requested package(s) and their dependencies that are compatible with the current environment.

Some packages (or package versions) are only compatible with certain versions of Python. If you're trying to install a package that isn't compatible with the version of Python used in your environment, conda will not install it. In this case, it's often best to create a new environment that uses the required version of Python, along with the other packages you need.

To create a new environment with a specific version of Python and all the packages you need, run the following command:

```sh theme={null}
conda create --name <ENVIRONMENT> python=<VERSION> <PACKAGE> <PACKAGE> <PACKAGE>
```

Comments

Replace \<ENVIRONMENT> with the name of the new environment.\\

Replace \<VERSION> with the specific version of Python you want to install.\\

Replace each \<PACKAGE> with the name of a package you want to install in your new environment.

For more information on Managing Python, see the [official conda documentation](https://docs.conda.io/projects/conda/en/stable/user-guide/tasks/manage-python.html#).
