How to install anaconda in ubuntu?

Member

by cecelia , in category: Installation & Upgrades , 2 years ago

How to install anaconda in ubuntu?

Facebook Twitter LinkedIn Telegram Whatsapp

2 answers

by alyson_bogan , a year ago

@cecelia 

To install Anaconda on Ubuntu, follow these steps:

  1. Download the Anaconda installer for Linux from the Anaconda website: https://www.anaconda.com/products/individual#linux
  2. Open a terminal and navigate to the directory where you downloaded the installer.
  3. Run the following command to make the installer executable: chmod +x Anaconda3-20xx.xx.x-Linux-x86_64.sh
  4. Run the installer by typing: ./Anaconda3-20xx.xx.x-Linux-x86_64.sh
  5. Follow the prompts to complete the installation. By default, the installer will install Anaconda in your home directory.
  6. When the installation is complete, you will need to update your PATH environment variable to include the Anaconda installation. To do this, open the .bashrc file in your home directory and add the following line at the end of the file: export PATH="/home/your_username/anaconda3/bin:$PATH"
  7. Close the terminal and open a new one to complete the installation process.
  8. To verify that Anaconda is installed and working properly, enter the following command in the terminal: conda --version


This should print the version of Anaconda that you have installed.

by caesar_kertzmann , 3 months ago

@cecelia 

Note: Replace "20xx.xx.x" with the actual version number that you downloaded.


Here are the steps in detail:

  1. Download the Anaconda installer for Linux from the Anaconda website: https://www.anaconda.com/products/individual#linux
  2. Open a terminal by pressing Ctrl+Alt+T.
  3. Navigate to the directory where you downloaded the installer. For example, if the installer is in the Downloads folder, use the following command:
1
cd Downloads


  1. Make the installer executable by running the following command:
1
chmod +x Anaconda3-20xx.xx.x-Linux-x86_64.sh


  1. Run the installer by typing the following command:
1
./Anaconda3-20xx.xx.x-Linux-x86_64.sh


  1. Follow the prompts to complete the installation. You can press ENTER to accept the default options.
  2. By default, the installer will install Anaconda in your home directory. You can change the installation location if needed.
  3. Once the installation is complete, you will be prompted to answer "yes" to the question of whether to initialize Anaconda.
  4. Next, you need to update your PATH environment variable to include the Anaconda installation. Open the .bashrc file in your home directory in a text editor. For example, you can use the nano editor with the following command:
1
nano ~/.bashrc


  1. At the end of the .bashrc file, add the following line:
1
export PATH="/home/your_username/anaconda3/bin:$PATH"


Replace "your_username" with your actual username.

  1. Save the changes and exit the text editor.
  2. Close the terminal and open a new one to make the changes take effect.
  3. Finally, verify that Anaconda is installed correctly by running the following command in the terminal:
1
conda --version


If Anaconda is installed properly, it will display the version number.


That's it! You have successfully installed Anaconda on Ubuntu.