pip Archives - The Linux GURUS https://thelinuxgurus.com/tag/pip/ Learn Linux & DevOPS from THE LINUX GURUS Fri, 04 Jun 2021 14:39:23 +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 pip Archives - The Linux GURUS https://thelinuxgurus.com/tag/pip/ 32 32 148921671 Complete guide to Install Django on Ubuntu https://thelinuxgurus.com/complete-guide-to-install-django-on-ubuntu/ https://thelinuxgurus.com/complete-guide-to-install-django-on-ubuntu/#respond Sun, 16 Feb 2020 05:15:52 +0000 https://thelinuxgurus.com/?p=1114 Django is a free and open-source web framework for python. It is very fast & allows rapid development by developers to create a website with...

The post Complete guide to Install Django on Ubuntu appeared first on The Linux GURUS.

]]>
Django is a free and open-source web framework for python. It is very fast & allows rapid development by developers to create a website with less time as well as efforts. Django is highly scalable & is also very secure, it allows developers to avoid common mistakes leading to serious security threats like XSS, SQL injection, CSRF, etc.

Recommended Read: Simple way to install Git on CentOS/RHEL

Also Read: Complete guide on Git Commands for Beginners

All these features have lead Django to being the most widely used framework. It is now being used by many major organizations to power their websites, like for example Pinterest, Firefox, NASA, Instagram, BitBucket, etc. In this tutorial, we will learn to install Django on Ubuntu.


Install Django on Ubuntu

To install Django on Ubuntu servers, we can use either of the following three methods mentioned below,

1- Install using apt

2- Using PIP

3- Using the Github Packages


1- Install using apt

Django packages are maintained by the default Ubuntu repositories & can be installed using the Ubuntu package manager i.e. apt or apt-get. Use the following command to install Django on ubuntu,

$ sudo apt-get install python3-django

This will install Django compatible with python 3. But if you need to install Django for python 2, which we don’t recommend since python 2 is no longer supported, you can use the following command,

$ sudo apt-get install python-django


2- Install Django using PIP

We have already discussed how to install PIP on the Ubuntu system, please refer to the article if you need to install PIP. You can also use the following command to install PIP,

$ sudo apt-get install python3-pip

So now to install Django using pip, the command is,

$ pip3 install django

We will now have a stable version of Django installed on our system.


3- Install Django using the Github Packages

Any of the two above methods should work for you for installing a stable version of Django but if for some reason you need to use the development version of Django, you need to use the package files available on the Github repository. So before we process with this method, we must have GIT & PIP both installed onto our system. Install PIP & GIT with the following commands,

$ sudo apt-get install python3-pip

$ sudo apt-get install git

Now we can use git to clone the Django repository to our local system,

$ mkdir ~/django

$ cd ~/django

$ git init

$ git clone git://github.com/django/django

Now we need to install Django using the pip command,

$ pip install -e ~/django

This command will now install Django on Ubuntu systems. With this, we end our tutorial on how to install Django on Ubuntu, 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 Django on Ubuntu appeared first on The Linux GURUS.

]]>
https://thelinuxgurus.com/complete-guide-to-install-django-on-ubuntu/feed/ 0 1114
Complete guide to install PyCharm on Ubuntu https://thelinuxgurus.com/complete-guide-to-install-pycharm-on-ubuntu/ https://thelinuxgurus.com/complete-guide-to-install-pycharm-on-ubuntu/#respond Sun, 02 Feb 2020 05:03:22 +0000 https://thelinuxgurus.com/?p=1088 If you have worked with Python or for that matter any other programming language, or even working as a system admin then you probably would...

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

]]>
If you have worked with Python or for that matter any other programming language, or even working as a system admin then you probably would have heard about Integrated Development Environment or as they are famously called IDEs. An IDE normally consists of at least a source code editor, build automation tools and a debugger.

Recommended Read: Complete guide to install Anaconda on Ubuntu

Also Read: Simple guide to install JUPYTER NOTEBOOK on Linux

In this tutorial, we will discuss one such famous IDE, PyCharm. PyCharm is a Python IDE & is used widely for python development. It provides many features like code completion, syntax highlighting, error highlighting, code folding, code snippets, code analysis, etc. There are two editions of PyCharm, Professional & community. While the professional edition is paid & has more features, the community edition is open-source & free to use.

In this tutorial, we will learn to install PyCharm on Ubuntu. We will be installing the community edition version of PyCharm.


Install PyCharm on Ubuntu

There are three ways using which we can install PyCharm on Ubuntu. We will be discussing both the methods for the installation.

Method 1 – Using official packages

With this method, we will first download the tar package of PyCharm from the official website & will then install it. To download the package, use the following command,

$ wget https://download.jetbrains.com/python/pycharm-community-2019.3.2.tar.gz

Currently, 2019.3.2 is the latest version of PyCharm. Once the package has been downloaded, then we need to extract it,

$ tar -xzf pycharm-community-2019.3.2.tar.gz

Now, enter into the folder & then to the ‘bin’ directory inside the folder,

$ cd pycharm-community-2019.3.2

$ cd bin

Now we only need to execute the startup script to start the PyCharm on your system.

$ sh pycharm.sh


Method 2 – using PPA

There is an unofficial PPA that also maintains PyCharm on their repository. So we need to first install the PPA & then we can install PyCharm. To add PPA, run the following command,

$ sudo add-apt-repository ppa:mystic-mirage/pycharm

Now we can install PyCharm,

$ sudo apt-get install pycharm-community

And we can start PyCharm like we run any other application, either from the menu or from the terminal with the following command,

$ pycharm-community


Method 3 – using SNAP

Another method to install PyCharm is by using snap, we have already discussed about snap in detail in the following tutorial. So for this method, we will first install snap & then install pycharm using snap. Snap comes pre-installed on Ubuntu version 16.04 & above & if it’s not installed on your system, then install it using the following command,

$ sudo apt-get install snapd

Now install PyCharm using snap with the following command,

$ sudo snap install pycharm-community –classic


Configuring PyCharm

Once PyCharm has been installed & started on the system, you will get the following screen,

install pycharm on ubuntu

Since this will the first time we have installed PyCharm on Ubuntu, we will use the option ‘Do not import settings’ but if you had configs from the previous installation, you can provide the path here to that folder.

On the next screen, we are required to select a theme,

install pycharm on ubuntu

Select a theme & click on the ‘Launcher script’. Now the PyCharm will launch & we will be asked to either create a new project or open an existing one,

install pycharm on ubuntu

Installation & configuration is now complete, we can now use Pycharm. This also concludes our tutorial on how to install PyCharm on Ubuntu. Please do send any queries to us 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 PyCharm on Ubuntu appeared first on The Linux GURUS.

]]>
https://thelinuxgurus.com/complete-guide-to-install-pycharm-on-ubuntu/feed/ 0 1088
Simple guide to install JUPYTER NOTEBOOK on Linux https://thelinuxgurus.com/simple-guide-to-install-jupyter-notebook-on-linux/ https://thelinuxgurus.com/simple-guide-to-install-jupyter-notebook-on-linux/#respond Sun, 02 Feb 2020 04:48:53 +0000 https://thelinuxgurus.com/?p=1082 Jupyter Notebook is an open-source, interactive web application that allows us to create and share documents. These documents can a bash script or can be...

The post Simple guide to install JUPYTER NOTEBOOK on Linux appeared first on The Linux GURUS.

]]>
Jupyter Notebook is an open-source, interactive web application that allows us to create and share documents. These documents can a bash script or can be code or simple text files or visualization files. It was created as a spinoff of the IPython Notebook project. It runs on the IPython kernel only but there are over 100 other kernels that also can be utilized.

Recommended Read: Important PostgreSQL commands that every beginner should know

Also Read: How to install PIP3 on CentOS/RHEL & use it

Jupyter Notebook supports over 40 programming languages. In this tutorial, we will learn to install the Jupyter notebook on Linux systems. So let’s start this tutorial with pre-requisites first.


Pre-Requisites

There are two methods using which we can install jupyter notebook on Linux. We can install it either using ‘CONDA’ or ‘PIP’. So for pre-requisites, we should have either or both of those installed on our system.

Conda Installation

We have published detailed tutorials for the installation of CONDA (ANACONDA) on Ubuntu & CentOS. Please refer to those tutorials to install anaconda on the system.

PIP installation

Refer to the following articles for installing PIP on Ubuntu & CentOS/RHEL. Once we have these installed, we move to the next part i.e. install Jupyter Notebook.


Install Jupyter Notebook

As mentioned above, we can install jupyter notebook using either CONDA or PIP, in both cases installation required only a single command. We will see the installation steps for both now.

Using Conda

The command for installation of jupyter notebook using conda is,

# conda install -c conda-forge jupyterlab

Using PIP

The command for installation of jupyter notebook using conda is,

# pip install jupyterlab

Once the installation is complete, we need to start the jupyter notebook from the terminal with the following command,

# jupyter notebook

install jupyter notebook

You will now be redirected to your browser by default or if you need to access URL manually, then enter the following URL on the web browser

http://127.0.0.1:8888

install jupyter notebook

Mine is running on port 8080, you can also change the port with the command mentioned below. Now once the jupyter notebook webpage opens, you would be asked to enter “Password or Token” & below it you can also find instructions to find the token. The token is required to create a new password first time we log in to the jupyter notebook & you can find it on the startup logs of jupyter notebook as also shown in the previous screenshot. Enter the token & then create a new password. Once this is complete, log in to the jupyter & you should see a screen like this,

Now let’s discuss some extra options that you can use for running the jupyter notebook.

By default, jupyter will only work on the localhost & if we need to access the jupyter notebook from a remote IP address, then we need to start jupyter from the terminal with an extra parameter,

# jupyter notebook – -ip=’*’

Or we can also mention a single IP in place of ‘*’ to connect from that single IP only. The default port number for jupyter notebook is 8888, we can also change that with the following command,

# jupyter notebook – -ip=’*’ – -port=’8080’

If needed, we can also run the jupyter notebook in the background,

# nohup jupyter notebook – -ip=’*’ – -port=’8080’ &

You can now start using the jupyter notebook for your needs & this was it for this tutorial on how to install jupyter notebook on Linux. As always, your comments, questions are most welcomed. Please do send them 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 Simple guide to install JUPYTER NOTEBOOK on Linux appeared first on The Linux GURUS.

]]>
https://thelinuxgurus.com/simple-guide-to-install-jupyter-notebook-on-linux/feed/ 0 1082
How to install PIP3 on CentOS/RHEL & use it https://thelinuxgurus.com/how-to-install-pip3-on-centos-rhel-use-it/ https://thelinuxgurus.com/how-to-install-pip3-on-centos-rhel-use-it/#comments Sun, 02 Feb 2020 04:38:40 +0000 https://thelinuxgurus.com/?p=1079 PIP is a recursive acronym that stands for “PIP Installs Python” (Confusing, right ?). PIP is basically a package manager to manage python-based applications &...

The post How to install PIP3 on CentOS/RHEL & use it appeared first on The Linux GURUS.

]]>
PIP is a recursive acronym that stands for “PIP Installs Python” (Confusing, right ?). PIP is basically a package manager to manage python-based applications & packages. PIP is used to install, remove or upgrade many of the python packages available in a repository known as Python Package Index or PyPI, in short.

Think PIP as YUM or APT for Python packages. In this tutorial, we will learn to install PIP on CentOS machines. Let’s discuss pre-requisites first.


Pre-requisites

To install the latest version of Python 3 on your system, please refer to the detailed article HERE.

Also read: How to uninstall Python from Windows, Linux & MacOS


Install PIP3 on CentOS

Once we have required python 3 version installed (we installed python 3.7 installed on our system using the above-mentioned tutorial), we can then proceed to install the respective PIP version on our system, which will be ‘python37-pip’ for us.

To install PIP3, we need to first install the EPEL repository on our system first (detailed tutorial HERE) & then install PIP3 using yum from the EPEL repository. Commands to install EPEL repository are mentioned below,

RHEL/CentOS 8

# dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm

RHEL/CentOS 7

# rpm -Uvh https://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/e/epel-release-7-11.noarch.rpm

RHEL/CentOS 6 (64 Bit)

# rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

RHEL/CentOS 6 (32 Bit)

# rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm

Now that we have EPEL repo installed on our system, we can execute the following command to install PIP3 on CentOS,

# yum install python37-pip

That’s it, Python PIP3 is installed on our system. Let’s discuss some of the PIP3 commands that we can use to manage the python packages.


PIP commands

To install a package using PIP, use the following command,

# pip3 install package_name

To install a number of packages, we can create a file & mention all the packages we need to have to install ed on our system. Then run the following command to install all the packages,

# pip3 install -r packages.txt


To remove a package, run

# pip3 uninstall package_name


Command to only download a package & not install it is,

# pip3 download package_name


To list installed packages,

# pip3 list


For a complete list of options that can be used with PIP command, run

# pip3 –help

That’s it for this tutorial on how to install PIP3 on CentOS. Please feel free to send in any questions or queries 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 How to install PIP3 on CentOS/RHEL & use it appeared first on The Linux GURUS.

]]>
https://thelinuxgurus.com/how-to-install-pip3-on-centos-rhel-use-it/feed/ 1 1079
How to install PIP3 on Ubuntu & use it https://thelinuxgurus.com/how-to-install-pip3-on-ubuntu-use-it/ https://thelinuxgurus.com/how-to-install-pip3-on-ubuntu-use-it/#respond Sun, 02 Feb 2020 04:32:10 +0000 https://thelinuxgurus.com/?p=1076 PIP is a recursive acronym that stands for “PIP Installs Python” (Confusing, right ?). PIP is basically a package manager to manage python-based applications &...

The post How to install PIP3 on Ubuntu & use it appeared first on The Linux GURUS.

]]>
PIP is a recursive acronym that stands for “PIP Installs Python” (Confusing, right ?). PIP is basically a package manager to manage python-based applications & packages. PIP3 is basically used with Python3, is used to install, remove or upgrade many of the python3 packages available in a repository known as Python Package Index or PyPI, in short.

Recommended Read: Install SNAP on Ubuntu & CentOS/RHEL

Also Read: Ultimate guide to install PYTHON from source

Think PIP as YUM or APT for Python packages. In this tutorial, we will learn to install PIP3 on Ubuntu machines. Let’s discuss pre-requisites first.


Pre-requisites

We should have Python installed on our system, which most of the Linux systems already have installed by default. But we can install python 3 on Ubuntu with the following command as well,

$ sudo apt-get update

$ sudo apt-get install python3

You can also refer to our detailed tutorial here for python 3 installation. Now next step would be to discuss how to install PIP on Ubuntu.


Install PIP3 on Ubuntu

Installation is pretty simple & straight forward for installing pip3 on Ubuntu. We can install PIP3 using the following commands,

$ sudo apt-get update && sudo apt-get upgrade -y

$ sudo apt-get install python3-pip

Once PIP is installed, we can use it to manage packages. Let’s discuss some commands for using Python PIP.


PIP3 commands

To install a package using PIP, use the following command,

$ pip3 install package_name

To install a number of packages, we can create a file & mention all the packages we need to have to install ed on our system. Then run the following command to install all the packages,

$ pip3 install -r packages.txt


To remove a package, run

$ pip3 uninstall package_name


Command to only download a package & not install it is,

$ pip3 download package_name


To list installed packages,

$ pip3 list


For a complete list of options that can be used with PIP command, run

$ pip3 –help

That’s it for this tutorial on how to install PIP3 on Ubuntu. Please feel free to send in any questions or queries 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 How to install PIP3 on Ubuntu & use it appeared first on The Linux GURUS.

]]>
https://thelinuxgurus.com/how-to-install-pip3-on-ubuntu-use-it/feed/ 0 1076
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
How to install PIP on Ubuntu- Python Package Manager https://thelinuxgurus.com/how-to-install-pip-on-ubuntu-python-package-manager/ https://thelinuxgurus.com/how-to-install-pip-on-ubuntu-python-package-manager/#respond Thu, 30 Jan 2020 13:50:02 +0000 https://thelinuxgurus.com/?p=1056 PIP is a recursive acronym that stands for “PIP Installs Python” (Confusing, right ?). PIP is basically a package manager to manage python-based applications &...

The post How to install PIP on Ubuntu- Python Package Manager appeared first on The Linux GURUS.

]]>
PIP is a recursive acronym that stands for “PIP Installs Python” (Confusing, right ?). PIP is basically a package manager to manage python-based applications & packages. PIP is used to install, remove or upgrade many of the python packages available in a repository known as Python Package Index or PyPI, in short.

Recommended Read:  How to install JAVA on Ubuntu

Also Read: Easy guide to install PIP on CentOS – Python Package Manager

Think PIP as YUM or APT for Python packages. In this tutorial, we will learn to install PIP on Ubuntu machines. Let’s discuss pre-requisites first,

Pre-requisites

We should have Python installed on our system, which most of the Linux systems already have installed by default. But we can install python on Ubuntu with the following command as well,

$ sudo apt-get install python

You can also refer to our detailed tutorial here for python installation. Now next step would be to discuss how to install PIP on Ubuntu.


Install PIP on Ubuntu

We can either of the two below mentioned methods to install PIP on Ubuntu. We can either install PIP using a script or we can install PIP package available in the default Ubuntu repositories.

Install using script

There is an official script that we can use to install PIP on Ubuntu, we just need to download it & run it on our system,

$ curl “https://bootstrap.pypa.io/get-pip.py” -o “get-pip.py”

$ python get-pip.py

Upon completion of our script, we would have PIP installed on our system.


Install using the Ubuntu repository

This is the easiest method that we can use to install PIP on Ubuntu, we just need run the following commands,

$ sudo apt-get update && sudo apt-get upgrade -y

$ sudo apt-get install python-pip

Once PIP is installed, we can use it to manage packages. Let’s discuss some commands for using Python PIP.


PIP commands

To install a package using PIP, use the following command,

$ pip install package_name

To install a number of packages, we can create a file & mention all the packages we need to have to install ed on our system. Then run the following command to install all the packages,

$ pip install -r packages.txt

To remove a package, run

$ pip uninstall package_name

Command to only download a package & not install it is,

$ pip download package_name

To list installed packages,

$ pip list

For a complete list of options that can be used with PIP command, run

$ pip –help

That’s it for this tutorial on how to install PIP on Ubuntu. Please feel free to send in any questions or queries 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 How to install PIP on Ubuntu- Python Package Manager appeared first on The Linux GURUS.

]]>
https://thelinuxgurus.com/how-to-install-pip-on-ubuntu-python-package-manager/feed/ 0 1056
Easy guide to install PIP on CentOS – Python Package Manager https://thelinuxgurus.com/easy-guide-to-install-pip-on-centos-python-package-manager/ https://thelinuxgurus.com/easy-guide-to-install-pip-on-centos-python-package-manager/#respond Thu, 30 Jan 2020 13:39:49 +0000 https://thelinuxgurus.com/?p=1051 PIP is a recursive acronym that stands for “PIP Installs Python” (Confusing, right ?). PIP is basically a package manager to manage python-based applications &...

The post Easy guide to install PIP on CentOS – Python Package Manager appeared first on The Linux GURUS.

]]>
PIP is a recursive acronym that stands for “PIP Installs Python” (Confusing, right ?). PIP is basically a package manager to manage python-based applications & packages. PIP is used to install, remove or upgrade many of the python packages available in the repository known as Python Package Index or PyPI, in short.

Recommended Read: Install Python on Ubuntu : A Simple guide

Also Read: Simple guide on how to install TOMCAT on CentOS/RHEL

Think PIP as YUM or APT for Python packages. In this tutorial, we will learn to install PIP on CentOS machines. Let’s discuss about pre-requisites first,

Pre-requisites

We should have Python installed on our system, which most of the Linux systems already have installed by default. But we can install python on Centos with the following command as well,

# yum install python

You can also refer to our detailed tutorial here for python installation. Now next step would be to discuss how to install PIP on CentOS.

Install PIP on CentOS

We can either of the two below mentioned methods to install PIP on CentOS. We can either install PIP using a script or we can use EPEL repository maintained PIP package on our system.


Install using script

There is an official script that we can use to install PIP on centos, we just need to download it & run it on our system,

# curl “https://bootstrap.pypa.io/get-pip.py” -o “get-pip.py”

# python get-pip.py

Upon completion of our script, we would have PIP installed on our system.


Install using EPEL repository

For this method, we need to first install the EPEL repository on our system (detailed tutorial HERE) & then install PIP using yum from EPEL repository. To install EPEL repository, use one the following command (based on your CentOS version),

RHEL/CentOS 8

# dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm

RHEL/CentOS 7

# rpm -Uvh https://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/e/epel-release-7-11.noarch.rpm

RHEL/CentOS 6 (64 Bit)

# rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

RHEL/CentOS 6 (32 Bit)

# rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm

Once we have EPEL repository installed on our system, execute the following command to install PIP on CentOS,

# yum install python-pip

That’s it, Python PIP is installed on our system. Let’s discuss some of the PIP commands that we can use to manage the python packages.


PIP commands

To install a package using PIP, use the following command,

# pip install package_name

To install a number of packages, we can create a file & mention all the packages we need to have to install ed on our system. Then run the following command to install all the packages,

# pip install -r packages.txt

To remove a package, run

# pip uninstall package_name

Command to only download a package & not install it is,

# pip download package_name

To list installed packages,

# pip list

For a complete list of options that can be used with PIP command, run

# pip –help

That’s it for this tutorial on how to install PIP on CentOS. Please feel free to send in any questions or queries 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 Easy guide to install PIP on CentOS – Python Package Manager appeared first on The Linux GURUS.

]]>
https://thelinuxgurus.com/easy-guide-to-install-pip-on-centos-python-package-manager/feed/ 0 1051