Data Science – TecAdmin https://tecadmin.net How to guide for System Administrator's and Developers Thu, 04 Aug 2022 10:04:46 +0000 en-US hourly 1 https://wordpress.org/?v=6.1.1 How To Install Anaconda on Fedora 36/35 https://tecadmin.net/how-to-install-anaconda-on-fedora/ https://tecadmin.net/how-to-install-anaconda-on-fedora/#respond Sun, 12 Sep 2021 07:07:22 +0000 https://tecadmin.net/?p=27730 Anaconda is a distribution that helps us with package management and deployments. It is written in Python and R programming language by data scientists, for data scientists. It includes the packages related to data science for various platforms like Linux, Windows, and macOS. You can use the conda binary for package management with your Python [...]

The post How To Install Anaconda on Fedora 36/35 appeared first on TecAdmin.

]]>
Anaconda is a distribution that helps us with package management and deployments. It is written in Python and R programming language by data scientists, for data scientists. It includes the packages related to data science for various platforms like Linux, Windows, and macOS.

You can use the conda binary for package management with your Python applications. Which will provide you with a better environment for faster development.

In this step-by-step tutorial, we will help you to install Anaconda on your Fedora Linux system.

Prerequisites

Login to your Fedora system and open a terminal. Generally, the curl package is default installed on the Fedora system. Execute the following command to install or update the curl package on your system.

sudo dnf install curl -y 

Step 1 – Download the Anaconda Installer

Download the Anaconda installer script from its official website. Visit the Anaconda installer script download page to check for the latest available versions.

Use the curl command-line utility to download the Anaconda installer script as below:

curl --output anaconda.sh https://repo.anaconda.com/archive/Anaconda3-2022.05-Linux-x86_64.sh 

You can also use the SHA-256 checksum, to make sure the package is safe and properly downloaded.

Now set the execute permission for the script.

chmod +x anaconda.sh 

Step 2 – How to Install Anaconda on Fedora

Your system is ready to install Anaconda. Let’s move to the next step and execute the Anaconda installer script as below:

bash anaconda.sh 

Follow the wizard instructions to complete the Anaconda installation process. You need to provide inputs during the installation process as described below:

    01. Use above command to run the downloaded installer script with the bash shell.

    Installing Conda on Fedora
    Start Anaconda Installation on Fedora

    02. Type “yes” to accept the Anaconda license agreement to continue.

    Accept License Agreement in Conda Installer
    Accept License Agreement

    03. Verify the Anaconda installation directory location and then just hit Enter to continue installer to that directory.

    Continue Anaconda Installation
    Continue the Anaconda Installer Process

    04. Type “yes” to initialize the Anaconda installer on your system.

    Intialize Anaconda during Installation
    Intialize Anaconda during Installation

    05. You will see a successful installation message of Anaconda on your system along with more details of installation files and directories.

    Anaconda Installed Successfully on Fedora
    Anaconda Successfully Installed on Fedora Linux

The Anaconda has been successfully installed on the Fedora Linux system. Also, the installer script has added the environment configuration in .bashrc file of current logged in user.

Use the following command to activate the Anaconda environment:

source ~/.bashrc 

Now we are in the default base of the programming environment. To verify the installation we will open conda list.

conda list 
Output:
# packages in environment at /home/tecadmin/anaconda3: # # Name Version Build Channel _ipyw_jlab_nb_ext_conf 0.1.0 py38_0 _libgcc_mutex 0.1 main alabaster 0.7.12 pyhd3eb1b0_0 anaconda 2021.05 py38_0 anaconda-client 1.7.2 py38_0 anaconda-navigator 2.0.3 py38_0 anaconda-project 0.9.1 pyhd3eb1b0_1 anyio 2.2.0 py38h06a4308_1 appdirs 1.4.4 py_0 argh 0.26.2 py38_0 argon2-cffi 20.1.0 py38h27cfd23_1 asn1crypto 1.4.0 py_0 astroid 2.5 py38h06a4308_1

Step 3 – How to Create Conda Environment

Use the following command to create a new Python 3 environment with Anaconda and set its name to “myenv”. You can also choose the specific python version.

conda create -n myenv python=3.9 

Next, activate this environment:

conda activate myenv  

You will see the current environment in the command prompt. This indicates that you are now in the new environment you activated.

To deactivate the current environment use command:

conda deactivate  

This will return you to the base environment.

How to Update Anaconda

You can easily update the Anaconda and packages using the conda binary. To upgrade the Anaconda on your system, type:

conda update --all 
Output:
Proceed ([y]/n)? y

Press “y” to proceed with the update process. The output will show you all the packages that are newly installed or upgrading current packages, and the removal of unnecessary packages.

How to Uninstall Anaconda

If you no longer used the Anaconda on your system. You can uninstall it by removing the installation directories and files created under the home directory.

rm -rf ~/anaconda3 ~/.conda 

Also, edit the ~/.bashrc file and remove the Anaconda environment configuration as shown in below images.

Delete Anaconda from Environment
Delete Anaconda from Environment

Delete the file content and save the file. Then exit from the current shell and open new a new shell.

Conclusion

This article helps you for installing Anaconda on Fedora Linux systems. Additionally provide you instructions to create a new environment with conda. Let’s begin working with your python applications with the Anaconda environments.

The post How To Install Anaconda on Fedora 36/35 appeared first on TecAdmin.

]]>
https://tecadmin.net/how-to-install-anaconda-on-fedora/feed/ 0
How To Install Anaconda on Debian 11 https://tecadmin.net/how-to-install-anaconda-on-debian-11/ https://tecadmin.net/how-to-install-anaconda-on-debian-11/#respond Fri, 10 Sep 2021 10:55:01 +0000 https://tecadmin.net/?p=27685 Anaconda is an open-source platform written with Python programming language. It was built by data scientists, for data scientists. Anaconda contains a large variety of packages and repositories. It is important in its functionality as it provides processing and computing data on a large scale and also to program in python language. The Anaconda is [...]

The post How To Install Anaconda on Debian 11 appeared first on TecAdmin.

]]>
Anaconda is an open-source platform written with Python programming language. It was built by data scientists, for data scientists. Anaconda contains a large variety of packages and repositories. It is important in its functionality as it provides processing and computing data on a large scale and also to program in python language. The Anaconda is a good platform to program python applications.

This article helps you to install Anaconda on your Debian 11 (Bullseye) Linux system with easy instructions.

Prerequisites

First of all, open terminal on your Debian system and execute the command mentioned below to update packages repository:

sudo apt update && sudo apt install curl -y 

Step 1 – Prepare the Anaconda Installer

Now I will go to the /tmp directory and for this purpose, we will use the cd command.

cd /tmp 

Next, use the curl command line utility to download the Anaconda installer script from the official site. Visit the Anaconda installer script download page to check for the latest versions. Then, download the script as below:

curl --output anaconda.sh https://repo.anaconda.com/archive/Anaconda3-2022.05-Linux-x86_64.sh 

To check the script SHA-256 checksum, I will use this command with the file name, though this step is optional:

sha256sum anconda.sh 
Output:
a7c0afe862f6ea19a596801fc138bde0463abcbce1b753e8d5c474b506a2db2d anaconda.sh

Check if the hash code matching with the code shown on the download page.

Step 2 – Installing Anaconda on Debian 11

Your system is ready to install Anaconda. Let’s move to the text step and execute the Anaconda installer script as below:

bash anaconda.sh 

Follow the wizard instructions to complete Anaconda installation process. You need to provide inputs during installation process as described below:

    01. Use above command to run the downloaded installer script with the bash shell.

    Begin the Anaconda Installation on Debian 11
    Begin the Anaconda Installation

    02. Type “yes” to accept the Anaconda license agreement to continue.

    Accept License Agreement in Conda Installer
    Accept License Agreement

    03. Verify the Anaconda installation directory location and then just hit Enter to continue installer to that directory.

    Continue Anaconda Installation
    Continue the Anaconda Installer Process

    04. Type “yes” to initialize the Anaconda installer on your system.

    Intialize Anaconda during Installation
    Intialize Anaconda during Installation

    05. You will see the below message on successful Anaconda installation on Debian 11 system.

    Anacond Installation Completed on Debian 11
    Anacond Installation Completed Successfully

Anaconda has been successfully installed on Debian Linux. The installer script has added the environment configuration in .bashrc file of current logged in user.

Use the following command to activate the Anaconda environment:

source ~/.bashrc 

Now we are in the default base of the programming environment. To verify the installation we will open conda list.

conda list 
Output:
# packages in environment at /home/tecadmin/anaconda3: # # Name Version Build Channel _ipyw_jlab_nb_ext_conf 0.1.0 py38_0 _libgcc_mutex 0.1 main alabaster 0.7.12 pyhd3eb1b0_0 anaconda 2021.05 py38_0 anaconda-client 1.7.2 py38_0 anaconda-navigator 2.0.3 py38_0 anaconda-project 0.9.1 pyhd3eb1b0_1 anyio 2.2.0 py38h06a4308_1 appdirs 1.4.4 py_0

How to Update Anaconda

You can easily update the Anaconda and packages using the conda binary. To upgrade the Anaconda on your system, type:

conda update --all 
Output:
Proceed ([y]/n)? y

Press “y” to proceed with the update process. The output will show you all the packages that are newly installed, or upgrading current packages, and the removal of unnecessary packages.

Conclusion

You can use Anaconda to manage scientific computing, workloads for data science, analytics, and large-scale data processing. In this article, we have learned how to install anaconda on Debian 11 “Bullseye” from its original source.

The post How To Install Anaconda on Debian 11 appeared first on TecAdmin.

]]>
https://tecadmin.net/how-to-install-anaconda-on-debian-11/feed/ 0
How To Install Anaconda on Ubuntu 20.04 https://tecadmin.net/how-to-install-anaconda-on-ubuntu-20-04/ https://tecadmin.net/how-to-install-anaconda-on-ubuntu-20-04/#comments Sun, 05 Sep 2021 08:17:10 +0000 https://tecadmin.net/?p=27666 Anaconda is an open-source platform that is used for R programming and Python. Which contains a large variety of packages and repositories. It is important in its functionality as it provides processing and computing data on a large scale and also to program in python language. The Anaconda is a good platform to program the [...]

The post How To Install Anaconda on Ubuntu 20.04 appeared first on TecAdmin.

]]>
Anaconda is an open-source platform that is used for R programming and Python. Which contains a large variety of packages and repositories. It is important in its functionality as it provides processing and computing data on a large scale and also to program in python language. The Anaconda is a good platform to program the python applications.

This article enables us to install the Anaconda on Ubuntu 20.04 in an easy way.

Prerequisites

Firstly, open terminal on your Ubuntu system and execute the command mentioned below to update packages repository:

sudo apt update 

Then install the curl package, which is further required for the downloading the installation script.

sudo apt install curl -y 

Step 1 – Prepare the Anaconda Installer

Now I will go to the /tmp directory and for this purpose, we will use the cd command.

cd /tmp 

Next, use the curl command line utility to download the Anaconda installer script from the official site. Visit the Anaconda installer script download page to check for the latest versions. Then, download the script as below:

curl --output anaconda.sh https://repo.anaconda.com/archive/Anaconda3-2022.05-Linux-x86_64.sh 

To check the script SHA-256 checksum, I will use this command with the file name, though this step is optional:

sha256sum anaconda.sh 
Output:
a7c0afe862f6ea19a596801fc138bde0463abcbce1b753e8d5c474b506a2db2d anaconda.sh

Check if the hash code is matching with code shown on the download page.

Step 2 – Installing Anaconda on Ubuntu

Your system is ready to install Anaconda. Let’s move to the text step and execute the Anaconda installer script as below:

bash anaconda.sh 

Follow the wizard instructions to complete Anaconda installation process. You need to provide inputs during installation process as described below:

    01. Use above command to run the downloaded installer script with the bash shell.

    Installing Anaconda on Ubuntu 20.04
    Run Anaconda Installer Script in A Shell

    02. Type “yes” to accept the Anaconda license agreement to continue.

    Accept License Agreement in Conda Installer
    Accept License Agreement

    03. Verify the directory location for Anaconda installation on Ubuntu 20.04 system. Just hit Enter to continue installer to that directory.

    Continue Anaconda Installation
    Continue the Anaconda Installer Process

    04. Type “yes” to initialize the Anaconda installer on your system.

    Intialize Anaconda during Installation
    Intialize Anaconda during Installation

    05. You will see the below message on successful Anaconda installation on Ubuntu 20.04 system.

    Anaconda Installation Completed
    Anaconda Installation Completed Sucessfully

The Anaconda Installation Completed Sucessfully on your Ubuntu system. Installer added the environment settings in .bashrc file. Now, activate the installation using following command:

source ~/.bashrc 

Now we are in the default base of the programming environment. To verify the installation we will open conda list.

conda list 
Output:
# packages in environment at /home/tecadmin/anaconda3: # # Name Version Build Channel _ipyw_jlab_nb_ext_conf 0.1.0 py39h06a4308_1 _libgcc_mutex 0.1 main _openmp_mutex 4.5 1_gnu aiohttp 3.8.1 py39h7f8727e_1 aiosignal 1.2.0 pyhd3eb1b0_0 alabaster 0.7.12 pyhd3eb1b0_0 anaconda 2022.05 py39_0 anaconda-client 1.9.0 py39h06a4308_0 anaconda-navigator 2.1.4 py39h06a4308_0 anaconda-project 0.10.2 pyhd3eb1b0_0 anyio 3.5.0 py39h06a4308_0 appdirs 1.4.4 pyhd3eb1b0_0 ... ...

How to Update Anaconda

You can easily update the Anaconda and packages using the conda binary. To upgrade the Anaconda on your system, type:

conda update --all 
Output:
Collecting package metadata (current_repodata.json): done Solving environment: done ## Package Plan ## environment location: /home/tecadmin/anaconda3 The following packages will be downloaded: package | build ---------------------------|----------------- anaconda-navigator-2.2.0 | py39h06a4308_0 5.1 MB conda-4.13.0 | py39h06a4308_0 895 KB conda-build-3.21.9 | py39h06a4308_0 533 KB ------------------------------------------------------------ Total: 6.5 MB The following packages will be UPDATED: anaconda-navigator 2.1.4-py39h06a4308_0 --> 2.2.0-py39h06a4308_0 conda 4.12.0-py39h06a4308_0 --> 4.13.0-py39h06a4308_0 conda-build 3.21.8-py39h06a4308_2 --> 3.21.9-py39h06a4308_0 Proceed ([y]/n)? y

Press “y” to proceed with the update process. The output will show you all the packages that are newly installed, or upgrading current packages and remove unnecessary packages.

Conclusion

You can use Anaconda to manage scientific computing, workloads for data science, analytics, and large-scale data processing. In this article, we have learned how to install anaconda on Ubuntu from its original source.

The post How To Install Anaconda on Ubuntu 20.04 appeared first on TecAdmin.

]]>
https://tecadmin.net/how-to-install-anaconda-on-ubuntu-20-04/feed/ 1