How do I install Anaconda on Ubuntu?
To install Anaconda on Ubuntu, you can follow these steps:
- First, download the Anaconda installation package for Ubuntu from the official website (https://www.anaconda.com/products/individual#linux). Choose the package that matches your operating system version.
- Open the terminal, navigate to the downloads directory, and install using the following command:
- Execute Anaconda3-2021.05-Linux-x86_64.sh in the bash shell.
- Please note that the Anaconda3-2021.05-Linux-x86_64.sh in the command should be replaced with the actual file name you downloaded.
- Follow the instructions of the installation program. You can choose the installation path for Anaconda, but usually the default path is sufficient.
- During the installation process, the installer will ask if you want to add Anaconda to the PATH of your system. It is recommended to choose “yes” as this will make it easier to use Anaconda commands directly in the terminal.
- After installing, close the terminal and open a new terminal window for the changes to PATH to take effect.
- To verify if Anaconda has been successfully installed, run the following command in the terminal:
- What is the version of conda installed on this system?
- If the version number of Anaconda is displayed, it means the installation was successful.
After installation, you can use the tools and environment manager that come with Anaconda to create and manage Python environments, install various packages, and perform tasks related to data science and machine learning.