Understanding Pipfile
If you look at the Pipfile generated by the pipenv tool, you will see it is more in detail than the regular requirements.txt file. This also stores more information than that. It stores the python version along with the version of the packages which are used and which are dependent on a specific version. It also stores the source of the resource from which the packages were downloaded.
But, there are cases we need a simple text file usually called the requirements.txt file to install from pip. So, we can use Pipenv to convert the automatically generated Pipfile into a simple text file called requirements.txt file for listing the dependencies in the project. But before that Let’s install one package for a reference.
Pipenv : Python Package Management Tool
We will be exploring the Python package management tool Pipenv. It is a dependency management tool in python. It is a high-level tool for managing dependency inside a Python project Pipenv is Python’s recommended package manager. It is simple and easier to use as compared to pip and virtual environment combined.
Pipenv creates a virtual environment separately for each initialization of the project. It is by default located in a specific folder but that can be configured, we will dive into this in this article later.