Python HOW: Create requirements.txt Using pipenv
A requirements.txt file lists all the Python dependencies required for a project. It’s a snapshot of all the packages you’ve used. You will need this for building a Docker image for example, or for creating Serverless Functions or Web Apps
What’s pipenv?
pipenv
is currently the recommended dependency manager for collaborative projects by Python. It uses pip
and virtualenv
under the hood. However, unlike pip
, it attempt to install sub-dependencies that satisfy all the requirements from core dependencies
Instilling pipenv
Run the following in your terminal for a user installation:
After installation, open a new terminal and run pipenv