> ## 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.

# Environments

An environment is a folder or directory that contains a specific collection of conda packages and their dependencies.

Working in separate environments allows you to maintain and run packages without interference from other collections of packages. For example, you may use a conda environment for only Python 2 and Python 2 packages and maintain another conda environment with only Python 3 and Python 3 packages.

## Uploading an environment file

1. [Create your environment.yml file](https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#create-env-file-manually).

2. Open the **Manage** dropdown menu and select *Upload File*.

   <Frame>
     <img src="https://mintcdn.com/anaconda-29683c67/NJcmnqSLAoz4wiuS/images/psm-on-prem/as_upload_file_2.png?fit=max&auto=format&n=NJcmnqSLAoz4wiuS&q=85&s=f42facbb31693090de6b2ad30afe2321" alt="" width="1914" height="433" data-path="images/psm-on-prem/as_upload_file_2.png" />
   </Frame>

3. Open the **Type** dropdown menu and select *Anaconda Environment*.

4. Click **Select files…** then locate and upload your environment file, or drag and drop the environment file into the field.

5. Click **Upload**.

## Downloading an environment file

1. From the channel details page, select the **Environments** tab.
2. Select an environment, then click on an environment file to download it.

   <Frame>
     <img src="https://mintcdn.com/anaconda-29683c67/JJYiWzNSIuFUmqGm/images/psm-on-prem/as_download_environment.png?fit=max&auto=format&n=JJYiWzNSIuFUmqGm&q=85&s=9fe022748f153759657e3273065309ab" alt="" width="1673" height="444" data-path="images/psm-on-prem/as_download_environment.png" />
   </Frame>

## Viewing environment dependencies

1. From the channel details page, select the **Environments** tab.
2. Click on an environment, then select the **Dependencies** tab to view the packages your environment depends on.

   <Frame>
     <img src="https://mintcdn.com/anaconda-29683c67/NJcmnqSLAoz4wiuS/images/psm-on-prem/as_view_environment_dependencies.png?fit=max&auto=format&n=NJcmnqSLAoz4wiuS&q=85&s=bdec0d3d9764b4034e88849823c35127" alt="" width="1772" height="749" data-path="images/psm-on-prem/as_view_environment_dependencies.png" />
   </Frame>

## Viewing environment metadata

1. From the channel details page, select the **Environments** tab.
2. Click on an environment.
3. Click the information icon next to the `.yml` file to view its metadata.

   <Frame>
     <img src="https://mintcdn.com/anaconda-29683c67/NJcmnqSLAoz4wiuS/images/psm-on-prem/as_environment_data.png?fit=max&auto=format&n=NJcmnqSLAoz4wiuS&q=85&s=db51869dd1ba048fd59621043f981819" alt="" width="1673" height="444" data-path="images/psm-on-prem/as_environment_data.png" />
   </Frame>

You will be presented with the environment’s metadata.

<Frame>
  <img src="https://mintcdn.com/anaconda-29683c67/NJcmnqSLAoz4wiuS/images/psm-on-prem/as_environment_metadata.png?fit=max&auto=format&n=NJcmnqSLAoz4wiuS&q=85&s=70a28a27f40e25163b9ab6ab01795f51" alt="" width="1664" height="774" data-path="images/psm-on-prem/as_environment_metadata.png" />
</Frame>

## Moving an environment file

To move an environment file from one channel or subchannel to another:

1. From the channel details page, select the **Environments** tab.

2. Select the checkbox next to the environment file you want to move.

3. Open the **Copy** dropdown menu and select *Move*.

   <Frame>
     <img src="https://mintcdn.com/anaconda-29683c67/NJcmnqSLAoz4wiuS/images/psm-on-prem/as_move_environment.png?fit=max&auto=format&n=NJcmnqSLAoz4wiuS&q=85&s=49688b6ecd3a89a1b4b0150b30113ba3" alt="" width="1905" height="508" data-path="images/psm-on-prem/as_move_environment.png" />
   </Frame>

4. Open the **Move To:** dropdown menu and select a destination channel for your environment file.

5. Click **Move**.

<Note>
  Moving an environment file will remove it from its origin channel.
</Note>

## Copying an environment file

To copy an environment file from one channel or subchannel to another:

1. From the channel details page, select the **Environments** tab.

2. Select the checkbox next to the environment file you want to copy.

3. Open the **Copy** dropdown menu and select *Copy*.

   <Frame>
     <img src="https://mintcdn.com/anaconda-29683c67/JJYiWzNSIuFUmqGm/images/psm-on-prem/as_copy_environment.png?fit=max&auto=format&n=JJYiWzNSIuFUmqGm&q=85&s=5b7805894311a8df06d82bc029259b19" alt="" width="1909" height="508" data-path="images/psm-on-prem/as_copy_environment.png" />
   </Frame>

4. Open the **Copy To:** dropdown menu and select a destination channel for your environment file.

5. Click **Copy**.

   <Note>
     Copying an environment file will not remove it from its origin channel.
   </Note>

## Deleting an environment file

To delete an environment file from a channel or subchannel:

1. From the channel details page, select the **Environments** tab.

2. Select the checkbox next to the environment file you want to delete.

3. Open the **Copy** dropdown menu and select *Delete*.

   <Frame>
     <img src="https://mintcdn.com/anaconda-29683c67/JJYiWzNSIuFUmqGm/images/psm-on-prem/as_delete_environment.png?fit=max&auto=format&n=JJYiWzNSIuFUmqGm&q=85&s=82e3e7baec3934c2ac8f70781ce5a4f1" alt="" width="1910" height="505" data-path="images/psm-on-prem/as_delete_environment.png" />
   </Frame>

4. Click **Delete** to verify you want to delete your selected environment file.
