Skip to main content

python package manager

python package manager

Hi guys. Welcome back to another tutorial on python. If you are new here, please do checkout our previous tutorials on python and also do checkout other programming languages. Also subscribe to our YouTube channel to get the video tutorials.

Today we are going to look at another interesting section in python called pip also known as python package manager.

  • In this article you will learn about:
  • What is pip and a package?
  • How to check if pip is installed in a system and install pip if it is not installed in a system
  • How to install packages
  • Using and finding packages
  • Uninstalling a package
  • List all the packages install

Let’s get started by knowing what is pip and a package

What is pip?

It’s a package manager for python which allow a user to install manage packages additional python packages that are not available in the python standard library.

What is a package?

A package is a directory containing multiples modules (a collection of python files) and other sub-packages

How to check if pip is installed

Go to your command prompt by typing cmd into the search bar in the start menu. In the command line, type the following “py -m pip –version”

OUTPUT

python package manager

Installing pip

If pip is not installed in your computer, you can download pip from this website: https://pypi.org/project/pip/.

How to install python package.

Installing packages in python is matter of simple steps. 

Let’s use the case where we want to install Django (one of python modules), here are the simple steps we have to follow:

Open the command and tell pip that you want to download to Django.

python package manager

After that you press enter and pip will start downloading the Django package

python package manager

Finding more packages

They are many packages in python. Here is a website where we can get the packages, we want in pythonhttps://pypi.org/project/pip/. 

Uninstalling a package

To uninstall a package requires some few steps. 

When we installed a package, we install some other some other pip dependencies. In this case we run the show command to check that the dependencies are not depended on other python packages. Once this is done and you have confirmed the package you want to remove, you can now use the pip uninstall command.

Let’s take an example where we want to remove the Django package

python package manager

Always remember to check the dependencies when you want to remove a package. Removing dependencies being used by other package will break your applications. These dependencies are removed manually

List packages

To list all the installed packages in your system, we use the pip list command list them.

Example

python package manager

OUTPUT

python package manager

Those are the packages which are installed in my operating systems.

Pip is very important as it helps install many python packages. Some of these packages are python-based web frames which are used to build web applications. Have a nice time coding. 

Comments

Popular posts from this blog

Introduction to flask

Hello. Welcome to another session on this platform. If you are new here, please do checkout our previous articles on python programming language and stay excited on this session because we are entering into one of python’s web-based application called flask. In this article, we are going to see the following What is flask Prequistes Installation of flask in python Some of flask template engine. What is flask? Flask is one of python-based framework which is used to create web applications. Flight is a very light web framework. During installation, flask comes with pre-installed modules and functions which are used to backup your own web applications. Flask is very easy to understand and perfect go-to for beginners and with flask, a web server can run in less than 3 lines of code. Prequistes Before learning flask, we recommend the reader to have a basic mastery of python concepts. Installation of flask  Before installing flask, we have to checked if python has been installed or. If n...

How to generate random numbers using NumP1

Hello. Welcome to another edition on this platform. For more better understanding, do checkout our YouTube channel to get the video tutorial. In this article of today, we are going to see how to generate random numbers using any of the following methods: Generating a random number Generating a random float and integer Generating random number arrays Generating random number from an array What is a random number? This is a number which cannot be predicted before its occurrence. This number might not different every time. Programmatically, they are two categories of random numbers:     Pseudo-Random numbers       True Random numbers. Just as programs which are written by programmers are a set of instructions, we must follow an algorithm to generate random numbers. Random numbers which are generated using an algorithm are called Pseudo-Random numbers. To generate a true random number, it is important to get the data from sources such as the keyboards, mou...

Introduction to Django

Hello. Welcome to another session on this platform. If you are new here, please do checkout our previous articles on python programming language and stay excited on this session. we are entering into one of python’s application called Django. In this article, we are going to discuss the following: What is Django Why must we use Django  A brief history of Django Installation of Django Popularity of Django What is Django? Python has so many framework application and Django happen to be one of them. Being a python-based-framework, it is used to quickly create web applications.  When building websites, django provides similar ready-made components to handle user authentication, forms, a way to upload components. Why use django? Django is very fast. It takes applications from concept to applications very quickly Django has thousand available packages in it when it is installed. With django, we can launch web applications is a matter of hours. Django is a highly is secured and helps...