anaconda Archives - The Linux GURUS https://thelinuxgurus.com/tag/anaconda/ Learn Linux & DevOPS from THE LINUX GURUS Tue, 18 Feb 2020 04:52:21 +0000 en-US hourly 1 https://i0.wp.com/thelinuxgurus.com/wp-content/uploads/2020/01/cropped-thelinuxgurus_transparent_name.png?fit=32%2C32&ssl=1 anaconda Archives - The Linux GURUS https://thelinuxgurus.com/tag/anaconda/ 32 32 148921671 Conda Commands cheat sheet for Beginners https://thelinuxgurus.com/conda-commands-cheat-sheet-for-beginners/ https://thelinuxgurus.com/conda-commands-cheat-sheet-for-beginners/#respond Thu, 30 Jan 2020 14:31:20 +0000 https://thelinuxgurus.com/?p=1065 Anaconda is an Open-Source distribution for Python & R programming languages. It is being used widely for Machine Learning, Data Science, etc. It has more...

The post Conda Commands cheat sheet for Beginners appeared first on The Linux GURUS.

]]>
Anaconda is an Open-Source distribution for Python & R programming languages. It is being used widely for Machine Learning, Data Science, etc. It has more than 1500 python/R data packages & is an industry-standard for developing, testing, and training on a single machine.

With anaconda’s conda, we can manage dependencies, libraries & environments. We can also use it with a number of applications like TensorFlow, Dask, Numba, Boken, Datashader, etc to develop and train machine learning and deep learning models or analyze data with scalability and performance or to visualize results.

Recommended Read: How to install MySQL on Ubuntu

Also Read: How to install PIP on Ubuntu- Python Package Manager

We have already discussed how to install Conda (anaconda) on Ubuntu & on CentOS/RHEL. Lets now discuss some Conda commands that we can use for package management.


Conda Commands Cheat Sheet

Check conda version

# conda info


Install a Package

# conda install package_name

For example,

# conda install spyder

Once a package has been installed, we can start it from the terminal,

# spyder


Update a package

# conda update package_name

For example,

# conda update package_name


Update conda to the latest version

To update conda to the latest version, use

# conda update conda


Remove a package

# conda remove package_name

For example,

# conda remove spyder


Search a package

To look for a particular package, use the following command,

# conda search package_name


Create a new environment

# conda create –name env_name

For example, if we need to create a new environment & install another python version on it, like python 3.6, use the following command,

# conda create –name test_py36 python=3.6

This way we can maintain many versions of python on a single system. We can also create a new environment with a package installed,

# conda create –name jupyter-env jupyter


List all created environments

# conda env list


Activate an environment

To activate the created environment, use

# source activate test_py36


Deactivate an environment

To delete an environment, use the following command,

# source deactivate


List all packages installed in an environment

# conda list


Delete an environment

To delete an environment along with all installed packages, use

# conda remove –name test_py36


Make a clone of an environment

To create an exact copy of an environment, we can use the following command,

# conda create –clone test_py36 –name test_py36-2


Save an environment to a text file

This is sort of like a backup, we can save an environment to a text file, which can later be used to create a new environment. To create a text file,

# conda list –explicit > backup_test_py36.txt


Restore an environment from a text file

To restore the environment saved to a text file, use the following command,

# conda env create –file backup_test_py36.txt


Conda Help

To get help about a command use,

# conda –help

or we can also use it like,

# conda remove –help


This concludes our tutorial on Conda commands for beginners. Please do let us know if you have any questions, queries or suggestions using the comment box below.

If you think we have helped you or just want to support us, please consider these:-

Connect to us: Facebook | Twitter | Linkedin

TheLinuxGURUS are thankful for your continued support.

The post Conda Commands cheat sheet for Beginners appeared first on The Linux GURUS.

]]>
https://thelinuxgurus.com/conda-commands-cheat-sheet-for-beginners/feed/ 0 1065
Complete guide to install Anaconda on Ubuntu https://thelinuxgurus.com/complete-guide-to-install-anaconda-on-ubuntu/ https://thelinuxgurus.com/complete-guide-to-install-anaconda-on-ubuntu/#respond Thu, 30 Jan 2020 14:15:29 +0000 https://thelinuxgurus.com/?p=1062 Anaconda is an Open-Source distribution for Python & R programming languages. It is being used widely for Machine Learning, Data Science etc. It has more...

The post Complete guide to install Anaconda on Ubuntu appeared first on The Linux GURUS.

]]>
Anaconda is an Open-Source distribution for Python & R programming languages. It is being used widely for Machine Learning, Data Science etc. It has more than 1500 python/R data packages & is an industry-standard for developing, testing, and training on a single machine.

Recommended Read: Simple guide to install POSTGRESQL on Ubuntu

Also Read: Complete guide to install Anaconda in CentOS

With anaconda’s conda, we can manage dependencies, libraries & environments. We can also use it with a number of applications like TensorFlow, Dask, Numba, Boken, Datashader etc to develop and train machine learning and deep learning models or analyze data with scalability and performance or to visualize results.

In this tutorial, we will learn to install Anaconda on Ubuntu. Let’s start out with pre-requisites first.


Pre-requisites

Before we can install Anaconda on Ubuntu, we need to make sure that the following packages are installed or not,

$ sudo apt-get install libgl1-mesa-glx libegl1-mesa libxrandr2 libxrandr2 libxss1 libxcursor1 libxcomposite1 libasound2 libxi6 libxtst6

You must also ensure that Python is installed on your system, which in most of the cases its installed but you can also install it on your system with the following command,

$ sudo apt-get install python

You can also refer to this detailed tutorial on installing Python on Ubuntu or installing Python from the source. After installing these packages, we can move to the installation part.


Install Anaconda on Ubuntu

For anaconda installation, we need to download the latest installation script available on the following URL. You can also use the following command to download the script on your system,

$ wget https://repo.anaconda.com/archive/Anaconda3-2019.10-Linux-x86_64.sh

This script is for python 3.7, so make sure that you have that installed. There is also an installation script for python 2.7 but I recommend not to use that since Python 2.7 is no longer being supported but you can use that also if you want.

The script is about 500 Mb in size & will take some to complete. Once the script has been downloaded, we need to run the script to install anaconda on Ubunutu,

$ bash Anaconda3-2019.10-Linux-x86_64.sh

Now follow the on-screen instructions to install anaconda, basically, we need to press ‘enter’ only till the script completes.

In the end, you will be asked questions like “License Agreement”, “Installation Path ”, “Installer adding PATH variable for anaconda on .bashrc fie”. You need to provide input for all these, upon completion of these questions, Anaconda will be installed on the system.

Now we can either log out & log back in or use the following command to activate the installation,

$ source ~/.bashrc

Now either we can use GUI tool called Anaconda Navigator to use conda or we can also use the cli commands for conda to manage the packages. We can start anaconda navigator from the menu or by entering the following command in the terminal,

$ anaconda-navigator

Let’s also discuss some CLI commands for Conda.


Conda Commands

Install a package

To install a package using conda, the command is

$ conda install package_name

Update a package

To update a package, use

$ conda update package_name

Remove a package

To remove a package name, use

$ conda remove package_name

You can also refer to a detailed cheat sheet for Condo Commands. This completes our tutorial, please do let us know if you have any questions, queries or suggestions using the comment box below.

If you think we have helped you or just want to support us, please consider these:-

Connect to us: Facebook | Twitter | Linkedin

TheLinuxGURUS are thankful for your continued support.

The post Complete guide to install Anaconda on Ubuntu appeared first on The Linux GURUS.

]]>
https://thelinuxgurus.com/complete-guide-to-install-anaconda-on-ubuntu/feed/ 0 1062
Complete guide to install Anaconda in CentOS https://thelinuxgurus.com/complete-guide-to-install-anaconda-in-centos/ https://thelinuxgurus.com/complete-guide-to-install-anaconda-in-centos/#respond Thu, 30 Jan 2020 14:06:21 +0000 https://thelinuxgurus.com/?p=1059 Anaconda is an Open-Source distribution for Python & R programming languages. It is being used widely for Machine Learning, Data Science, etc. It has more...

The post Complete guide to install Anaconda in CentOS appeared first on The Linux GURUS.

]]>
Anaconda is an Open-Source distribution for Python & R programming languages. It is being used widely for Machine Learning, Data Science, etc. It has more than 1500 python/R data packages & is an industry-standard for developing, testing, and training on a single machine.

With anaconda’s conda, we can manage dependencies, libraries & environments. We can also use it with a number of applications like TensorFlow, Dask, Numba, Boken, Datashader, etc to develop and train machine learning and deep learning models or analyze data with scalability and performance or to visualize results.

Recommended Read: How to install PIP on Ubuntu- Python Package Manager

Also Read: Introduction to Bash Scripting Tutorial

In this tutorial, we will learn to install Anaconda on Ubuntu. Let’s start out with pre-requisites first.

Pre-requisites

Before we can install Anaconda on Ubuntu, we need to make sure that the following packages are installed or not,

# yum install libXcomposite libXcursor libXi libXtst libXrandr alsa-lib mesa-libEGL libXdamage mesa-libGL libXScrnSaver

You must also ensure that Python is installed on your system, which in most cases it’s installed. You can also refer to this detailed tutorial on installing Python on CentOS or installing Python from the source.

After installing these packages, we can move to the installation part.


Install Anaconda

For anaconda installation, we need to download the latest installation script available on the following URL. You can also use the following command to download the script on your system,

# wget https://repo.anaconda.com/archive/Anaconda3-2019.10-Linux-x86_64.sh

This script is for python 3.7, so make sure that you have that installed. There is also an installation script for python 2.7 but I recommend not to use that since Python 2.7 is no longer being supported but you can use that also if you want.

The script is about 500 Mb in size & will take some to complete. Once the script has been downloaded, we need to run the script to install anaconda on Ubunutu,

# bash Anaconda3-2019.10-Linux-x86_64.sh

Now follow the on-screen instructions to install anaconda, basically, we need to press ‘enter’ only till the script completes.

In the end, you will be asked questions like “License Agreement”, “Installation Path ”, “Installer adding PATH variable for anaconda on .bashrc fie”. You need to provide input for all these, upon completion of these questions, Anaconda will be installed on the system.

Now we can either log out & log back in or use the following command to activate the installation,

# source ~/.bashrc

Now either we can use a GUI tool called Anaconda Navigator to use conda or we can also use the cli commands for conda to manage the packages. We can start anaconda navigator from the menu or by entering the following command in the terminal,

# anaconda-navigator

Let’s also discuss some CLI commands for Conda.


Conda Commands

Install a package

To install a package using conda, the command is

$ conda install package_name

Update a package

To update a package, use

$ conda update package_name

Remove a package

To remove a package name, use

$ conda remove package_name

You can also refer to a detailed cheat sheet for Condo Commands. This concludes our tutorial for Anaconda installation on CentOS. Please do send us your queries, suggestions using the comment box below.

If you think we have helped you or just want to support us, please consider these:-

Connect to us: Facebook | Twitter | Linkedin

TheLinuxGURUS are thankful for your continued support.

The post Complete guide to install Anaconda in CentOS appeared first on The Linux GURUS.

]]>
https://thelinuxgurus.com/complete-guide-to-install-anaconda-in-centos/feed/ 0 1059