Python dependencies on project level

Since I started work with Python, I struggled with dependencies on a project level. I was aware of `requirements.txt` file, but handling it became very difficult for multiple projects.

Fortunately I found very handy tool called pipreqs which generages a project level requirements.txt file using one command.

Installation

pip3 install pipreqs

Usage

Just go into your project directory and run

pipreqs

and install inside target environment

pip3 install -r requirements.txt

Sometimes it does on work on 100 %, but it can save a lot of time 🙂