pip3 Archives - The Linux GURUS https://thelinuxgurus.com/tag/pip3/ 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 pip3 Archives - The Linux GURUS https://thelinuxgurus.com/tag/pip3/ 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