# Anaconda Learning Source: https://anaconda.com/docs/getting-started/anaconda-learning/main Master the foundations of data science through structured, step-by-step courses. Code along with your course instructors, develop projects, and save your progress directly inside Anaconda Learning. Check out information on Anaconda Learning for yourself [here](https://anaconda.com/learning?utm_campaign=learning\&utm_medium=documentation\&utm_source=anacondadocs\&utm_content=learning) or log in to [Anaconda.com](https://auth.anaconda.com/ui/login?return_to=https://anaconda.com/app/) and select **Learning** to start choosing courses! # Security practices for Anaconda Learning Source: https://anaconda.com/docs/getting-started/anaconda-learning/security-learning * Make sure you use a highly secure password for your Anaconda.com login. Anaconda recommends using memorable but unguessable passwords of the kind [dreamed up by Randall Munroe of XKCD](https://xkcd.com/936/). There’s even a [Python package to generate them](https://pypi.org/project/xkcdpass/). A good alternative is to use completely random passwords of at least 16 alphanumeric characters and to store them in a password manager like [Keepass](https://keepass.info/). * Verify your email address to reset your Anaconda.com password if you forget it. * Look out for phishing. Anaconda will never send you an email asking for your password. Also, check the address bar in your browser before typing in your password! * Don’t leave a device that’s logged in to Anaconda Notebooks unattended in a public area. * If working with sensitive information in a public place, use a privacy screen on your device to discourage strangers from viewing your screen. # Installing Anaconda on an air-gap machine Source: https://anaconda.com/docs/getting-started/anaconda/advanced-install/air-gap 1. Obtain a local copy of the appropriate Anaconda installer for the non-networked machine. You can copy the Anaconda installer to the target machine using many different methods, including a portable hard drive, USB drive, or CD. 2. After copying the installer to the non-networked machine, follow the detailed installation instructions for your operating system. # Installing the anaconda metapackage Source: https://anaconda.com/docs/getting-started/anaconda/advanced-install/install-metapackage The `anaconda` metapackage is a version-locked collection of packages that were included in an Anaconda Distribution installer. Version-locked packages (also called pinned packages) are tied to a specific version of their software. Conda does not update pinned packages when resolving dependencies if other packages in the environment are added or modified. Because each package in the metapackage is pinned, *any attempt to update the environment will almost certainly result in build conflicts*. However, it is still possible to install the `anaconda` metapackage and update the environment that contains it. For more information, see [Updating a metapackage environment](#updating-a-metapackage-environment). The `anaconda` metapackage was removed from Anaconda Distribution installers in February of 2023 and no longer appears in your `base` environment by default. ## Installing the metapackage If you plan to install the `anaconda` metapackage, Anaconda recommends that you create an environment specifically for that metapackage first: 1. Open Anaconda Prompt (Terminal on macOS/Linux). 2. Create a new environment by running the following command: ```sh # Replace with the name of your environment conda create --name ``` 3. (Optional) Search for metapackage versions available for install by running the following command: ```sh conda search anaconda ``` 4. Install the `anaconda` metapackage or specify a metapackage version by running one of the following commands: ```sh conda install anaconda ``` ```sh # Replace with the specific version you want to install conda install anaconda= ``` ## Updating a metapackage environment If you have an environment containing the `anaconda` metapackage and need to update packages in that environment, you must first unpin the package versions in your environment. This is accomplished by installing the `anaconda=custom` version of the metapackage: 1. Open Anaconda Prompt (Terminal on macOS/Linux). 2. Open the environment containing the metapackage you want to update: ```sh # Replace with the name of your metapackage environment conda activate ``` 3. Install the custom version of the `anaconda` package using the following command: ```sh conda install anaconda=custom ``` 4. Install or update packages as desired. For more information on managing packages, see [Managing packages](https://docs.conda.io/projects/conda/en/stable/user-guide/tasks/manage-pkgs.html) in the conda documentation. # Advanced installation Source: https://anaconda.com/docs/getting-started/anaconda/advanced-install/main See the following topics for advanced installation options. For basic installation instructions, see [Installing Anaconda Distribution](/getting-started/anaconda/install). # Installing for multiple users Source: https://anaconda.com/docs/getting-started/anaconda/advanced-install/multi-user The default Anaconda installation option is “Just Me,” which creates an independent installation of Anaconda that will not be shared with other users on the same system. The other option is to install for all users. If you have administrator access, you can choose to install for “All Users.” This is a good option for a multi-user system where you want to allow users to import Python libraries and run Python applications. This option does not give write permissions by default, so the users will not be able to install packages in the base environment. It allows an administrator to protect what is in the base environment. If packages are needed in the base environment, elevate the privileges to administrator from the Command Prompt and run install commands. 1. Download the latest [Anaconda Distribution installer](https://www.anaconda.com/downloads). 2. Double-click the installer to launch. 3. Click **Next** to continue. 4. Read the [Anaconda’s Terms of Service (TOS)](https://legal.anaconda.com/policies/en/) and click **I Agree**. 5. Select an install for **All Users** (this requires administrator privileges on the computer) and click **Next**. 6. Click **Yes** to allow the installer to make changes to your computer. 7. Select a destination folder that is accessible to the users. The default is `C:\ProgramData\Anaconda`. 8. After your install is complete, open **Computer Management**, navigate to **Local Users and Groups**. Create a new group for your Anaconda users. Add users to this new group, Anaconda-Users. 9. Navigate to your Anaconda folder and then right-click and select **Properties**. Uncheck the box for **Attributes: Read-only** and save changes. Go to **Security** and click **Edit**. From there, add Anaconda-Users and set permissions. Your group will need read and write privileges. sudo access is required. 1. [Install Anaconda](/getting-started/anaconda/install). 2. After installation is complete, do the following: ```sh #Create a new group sudo groupadd mygroup # Change the group ownership to "mygroup" on the entire directory where Anaconda is installed. # Replace /PATH/TO/ANACONDA/INSTALL with the actual path to your installed Anaconda file. sudo chgrp -R mygroup /PATH/TO/ANACONDA/INSTALL # Set read and write permission for the owner, root, and the mygroup only. # Replace /PATH/TO/ANACONDA/INSTALL with the actual path to your installed Anaconda file. sudo chmod 770 -R /PATH/TO/ANACONDA/INSTALL # Add users to a group. Replace with the username of the user you are adding. sudo adduser mygroup ``` Users added to the “mygroup” group now have the ability to access Anaconda, install packages, and create environments. # Using older versions of Anaconda Distribution Source: https://anaconda.com/docs/getting-started/anaconda/advanced-install/old-os Anaconda recommends upgrading your operating system to the latest available or to one that is commonly used and supported. Upgrading your OS allows you to get the latest packages, performance improvements, bug fixes, and more. Anaconda Distribution is currently available for: | Architecture | File name ending | | :-------------------------- | :---------------------- | | Windows 64-bit | x86\_64.exe | | macOS Intel | x86\_64.pkg, x86\_64.sh | | macOS Apple Silicon | arm64.pkg, arm64.sh | | Linux x86\_64 | x86\_64.sh | | Linux AWS Graviton 2/ARM 64 | aarch64.sh | | Linux IBM Z | s390x.sh | ## Installing older versions of Anaconda Distribution Older versions of Anaconda Distribution are still subject to Anaconda’s [Terms of Service](https://legal.anaconda.com/policies/en/?name=terms-of-service). Older versions of Anaconda Distribution are still available for: | Architecture | File name ending | | :------------------------ | :--------------- | | Windows 32-bit | x86.exe | | Linux 32-bit Intel or AMD | x86.sh | | Linux IBM Power CPU | ppc64le.sh | These versions can be downloaded from our [archive](https://repo.anaconda.com/archive/). **However, these installations are no longer supported by Anaconda and most are no longer receiving security updates.** You might not be able to use conda to update or install packages beyond what is included in the Anaconda Distribution version you’ve installed. This is because Anaconda Distribution provides a static bundle of packages from the time of release, but the repository continues to be updated over time. Older package versions may be removed or replaced, and the versions present in the repository might not be compatible with your operating system. For package lists for each version of Anaconda Distribution, see the [Anaconda Distribution release notes](/getting-started/anaconda/release-notes). # Installing with silent mode Source: https://anaconda.com/docs/getting-started/anaconda/advanced-install/silent-mode When installing in silent mode, you can supply additional arguments to the install command through your command line interface (CLI) or via script. Silent mode installation can be useful when deploying Anaconda Distribution to many clients, as the installation can be completed automatically without the user needing to manually select options in an installer wizard GUI or within the CLI itself. Download Anaconda Distribution manually from one of the links above or use `curl -O` to download via your CLI. ```sh curl -O https://repo.anaconda.com/archive/Anaconda3-2024.10-1-Windows-x86_64.exe ``` To run the Windows installer for Anaconda in silent mode, use the `/S` argument. The following optional arguments are supported: * `/InstallationType=[JustMe|AllUsers]`—Default is `JustMe`. * `/AddToPath=[0|1]`—Default is `0`. * `/RegisterPython=[0|1]`—Make this the system’s default Python. Default is `0`. * `/S`—Install in silent mode. * `/D=`—Destination installation path. Must be the last argument. Do not wrap in quotation marks. Required if installing in silent mode. All arguments are case-sensitive. For example, the following batch file command installs Anaconda Distribution for the current user without registering Python as the system’s default: ```sh start /wait "" Anaconda3-2024.10-1-Windows-x86_64.exe /InstallationType=JustMe /RegisterPython=0 /S /D=%UserProfile%Anaconda3 ``` As of `Anaconda Distribution 2022.05`, the option to add Anaconda to the PATH environment variable during an **All Users** installation has been disabled. This was done to address [a security exploit](https://nvd.nist.gov/vuln/detail/CVE-2022-26526). You can still add Anaconda to the PATH environment variable during a **Just Me** installation. Download Anaconda Distribution manually from one of the links above or use `curl -o` to download via your CLI. To run the silent installation of Miniconda for macOS or Linux, specify the -b and -p arguments of the bash installer. The following arguments are supported: * `-b`—Batch mode with no PATH modifications to `~/.bashrc`. Assumes that you agree to the license agreement. Does not edit the `.bashrc` or `.bash_profile` files. * `-p`—Installation prefix/path. * `-f`—Force installation even if the installation prefix/path already exists. For example, the following batch file command installs Anaconda Distribution for the current user without registering Python as the system’s default: ```sh bash ~/Anaconda3-2024.10-1-MacOSX-x86_64.sh -b -p $HOME/anaconda3 ``` The installer will not prompt you for anything, including setup of your shell to activate conda. To add this activation in your current shell session: ```sh source ~/anaconda3/bin/activate ``` With this activated shell, install conda’s shell functions for easier access in the future: ```sh conda init --all ``` If you’d prefer that conda’s base environment not be activated on startup, set the `auto_activate_base` parameter to false: ```sh conda config --set auto_activate_base false ``` # Installing Anaconda Distribution Source: https://anaconda.com/docs/getting-started/anaconda/install export const Danger = ({children}) => { return
{children}
; }; You might need to purchase a license to stay compliant with our [Terms of Service](https://www.anaconda.com/terms-of-service). This page provides instructions for installing Anaconda Distribution on Windows, macOS, and Linux. If you prefer an installation without the extensive collection of packages included in Anaconda Distribution, [install Miniconda](/getting-started/miniconda/install) instead. Miniconda is a free, miniature installation of Anaconda Distribution that includes only conda, Python, the packages they both depend on, and a small number of other useful packages. ## Basic install instructions If you’ve installed multiple versions of Anaconda Distribution, the system defaults to using the most current version, as long as you haven’t altered the default install path.