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

# Installing for multiple users

export const Comments = ({children}) => {
  return <div class="my-4 px-5 py-4 overflow-hidden rounded-2xl flex gap-3 border border-zinc-500/20 bg-zinc-50/50 dark:border-zinc-500/30 dark:bg-zinc-500/10" data-callout-type="comments">
      <div class="w-4">
        <svg width="14" height="14" viewBox="0 0 640 640" fill="currentColor" xmlns="http://www.w3.org/2000/svg" class="w-5 h-5" aria-label="Comments">
            <path d="M320 112C434.9 112 528 205.1 528 320C528 434.9 434.9 528 320 528C205.1 528 112 434.9 112 320C112 205.1 205.1 112 320 112zM320 576C461.4 576 576 461.4 576 320C576 178.6 461.4 64 320 64C178.6 64 64 178.6 64 320C64 461.4 178.6 576 320 576zM280 400C266.7 400 256 410.7 256 424C256 437.3 266.7 448 280 448L360 448C373.3 448 384 437.3 384 424C384 410.7 373.3 400 360 400L352 400L352 312C352 298.7 341.3 288 328 288L280 288C266.7 288 256 298.7 256 312C256 325.3 266.7 336 280 336L304 336L304 400L280 400zM320 256C337.7 256 352 241.7 352 224C352 206.3 337.7 192 320 192C302.3 192 288 206.3 288 224C288 241.7 302.3 256 320 256z" />
        </svg>
      </div>
      <div class="text-sm prose min-w-0 w-full">
        {children}
      </div>
    </div>;
};

If you have administrator access and want to install Anaconda Distribution or Miniconda for all users on a shared system, follow these steps:

<Tabs>
  <Tab title="Windows">
    <Note>
      Administrator privileges are required.
    </Note>

    1. Install [Anaconda Distribution](/getting-started/anaconda/install/windows-gui-install) or [Miniconda](/getting-started/miniconda/install/windows-gui-install) for all users. When prompted, select **All Users** and use a location users have read access to (such as `C:\ProgramData\miniconda3`).

       All users on the machine can now access conda through the Anaconda Prompt (or Anaconda PowerShell Prompt) application in the Start Menu. These applications activate the `base` environment automatically.

    2. Accept the Terms of Service.

           <Note>
             If you are setting up Anaconda Distribution or Miniconda on behalf of members of your company, you can globally accept the Terms of Service for all users. If unrelated individual users are accessing Anaconda Distribution or Miniconda on the system, instead instruct users to accept the Terms of Service on an individual basis.
           </Note>

           <Tabs>
             <Tab title="System-wide TOS acceptance">
               Open Anaconda Prompt (or Anaconda PowerShell Prompt) from the Start Menu and run the following command:

               ```sh theme={null}
               conda tos accept --system
               ```
             </Tab>

             <Tab title="Individual TOS acceptance">
               Open Anaconda Prompt (or Anaconda PowerShell Prompt) from the Start Menu and run the following command:

               ```sh theme={null}
               conda tos accept
               ```
             </Tab>
           </Tabs>

       For more information on `conda tos`, see [Managing Terms of Service on the command line](/getting-started/tos-plugin).

    3. Optionally, create additional shared environments that all users can access.

       To create a shared environment, run the following command in Anaconda Prompt (or Anaconda PowerShell Prompt) with administrator privileges:

           <Tip>
             You can open Anaconda Prompt (or Anaconda PowerShell Prompt) with administrator privileges by right-clicking the application from the Start Menu and selecting **Run as administrator**.
           </Tip>

       ```sh theme={null}
       conda create --name <ENV-NAME>
       ```

           <Comments>
             Replace \<ENV-NAME> with the name of the environment you want to create.
           </Comments>

       When created with administrator privileges, shared environments are saved to `C:\ProgramData\anaconda3\envs` or `C:\ProgramData\miniconda3\envs` and are accessible to all users.

           <Note>
             Users cannot modify shared system environments, but they can create their own private environments using the same command.

             User-created environments are saved to `%USERPROFILE%\.conda\envs` in the user's home directory and are only accessible to that user.
           </Note>

    4. Optionally, monitor disk usage of the shared package cache at `C:\ProgramData\anaconda3\pkgs` or `C:\ProgramData\miniconda3\pkgs`. Users share the system-wide package cache, which conda reads from first before falling back to each user's own cache at `%USERPROFILE%\.conda\pkgs`. Run [`conda clean`](https://docs.conda.io/projects/conda/en/stable/commands/clean.html) periodically to remove unused packages and free up disk space.

    5. Optionally, configure a global `.condarc` file at `C:\ProgramData\anaconda3\.condarc` or `C:\ProgramData\miniconda3\.condarc` to set system-wide defaults such as default channels. For example:

       ```yaml theme={null}
       channels:  #!final
         - defaults

       channel_alias: https://repo.anaconda.com/pkgs/  #!final
       ```

       The `#!final` keyword prevents users from overriding specific settings with their own `.condarc` file. For a full list of configurable options, see [Using the .condarc conda configuration file](https://docs.conda.io/projects/conda/en/latest/user-guide/configuration/use-condarc.html) in the official conda documentation.

           <Warning>
             Users may still be able to override `#!final` settings in some circumstances. System-wide configuration cannot fully enforce policy.
           </Warning>
  </Tab>

  <Tab title="Linux">
    <Note>
      `root` access is required.
    </Note>

    1. Install [Anaconda Distribution](/getting-started/anaconda/install/linux-install) or [Miniconda](/getting-started/miniconda/install/linux-install) into a location accessible to all users, such as `/opt/anaconda3` or `/opt/miniconda3`.

    2. Initialize `conda` for all users so it is available in their terminals.

       Open a terminal and run the following command:

           <CodeGroup>
             ```sh Initialization command theme={null}
             . <PATH-TO-INSTALL>/etc/profile.d/conda.sh
             conda init --all --system
             ```

             ```sh Example theme={null}
             . /opt/anaconda3/etc/profile.d/conda.sh
             conda init --all --system
             ```
           </CodeGroup>

           <Comments>
             Replace \<PATH-TO-INSTALL> with the path to your Anaconda/Miniconda install directory.
           </Comments>

           <Note>
             Users might not see the active environment name in their shell prompt on first login due to their shell profile overwriting the prompt. This only affects the prompt display; `conda` will still work correctly. Users can run `conda activate` to fix the prompt for the current session, or `conda init` to fix it permanently for each new shell.
           </Note>

    3. Accept the Terms of Service.

           <Note>
             If you are setting up Anaconda Distribution or Miniconda on behalf of members of your company, you can globally accept the Terms of Service for all users. If unrelated individual users are accessing Anaconda Distribution or Miniconda on the system, instead instruct users to accept the Terms of Service on an individual basis.
           </Note>

           <Tabs>
             <Tab title="System-wide TOS acceptance">
               Open a terminal and run the following command:

               ```sh theme={null}
               conda tos accept --system
               ```
             </Tab>

             <Tab title="Individual TOS acceptance">
               Open a terminal and run the following command:

               ```sh theme={null}
               conda tos accept
               ```
             </Tab>
           </Tabs>

       For more information on `conda tos`, see [Managing Terms of Service on the command line](/getting-started/tos-plugin).

    4. Optionally, create additional shared environments that all users can access.

       To create a shared environment, run the following command as `root`:

           <Tip>
             You can open a root shell by running `sudo -i` or `su -` in your terminal.
           </Tip>

       ```sh theme={null}
       conda create --name <ENV-NAME>
       ```

           <Comments>
             Replace \<ENV-NAME> with the name of the environment you want to create.
           </Comments>

           <Note>
             Users cannot modify shared system environments, but they can create their own private environments using the same command without root access.

             User-created environments are saved to `~/.conda/envs` in the user's home directory and are only accessible to that user.
           </Note>

    5. Optionally, monitor disk usage of the shared package cache at `<PATH-TO-INSTALL>/pkgs`. Users share the system-wide package cache, which conda reads from first before falling back to each user's own cache at `~/.conda/pkgs`. Run [`conda clean`](https://docs.conda.io/projects/conda/en/stable/commands/clean.html) periodically to remove unused packages and free up disk space.

    6. Optionally, configure a global `.condarc` file at `<PATH-TO-INSTALL>/.condarc` to set system-wide defaults such as default channels. For example:

       ```yaml theme={null}
       channels:  #!final
         - defaults

       channel_alias: https://repo.anaconda.com/pkgs/  #!final
       ```

       The `#!final` keyword prevents users from overriding specific settings with their own `.condarc` file. For a full list of configurable options, see [Using the .condarc conda configuration file](https://docs.conda.io/projects/conda/en/latest/user-guide/configuration/use-condarc.html) in the official conda documentation.

           <Warning>
             Users may still be able to override `#!final` settings in some circumstances. System-wide configuration cannot fully enforce policy.
           </Warning>
  </Tab>
</Tabs>
