Understanding what are modules & pip (package manager)

Python

Modules: Modules are file containing some code written and verified by the developers which we can import in our programs and use it according to our requirements.
Importing modules in our program can save a lot of our work of rewriting the same code which someone else has already written and tested.

Modules are of 2 types:
Built-in modules — These modules come preinstalled when we install python in our system. For example os,abc,datetime,dbm

External modules — We have to install these modules by ourselves by using some commands. For example Flask, Tensorflow

pip: It is the package manager for python. It means by using this command we can download the external modules, libraries, and dependencies that are not provided by the python standard library.
For example pip install Flask

More content at blog.devgenius.io.

--

--