Normal Classic Pip VS Pip-Compile & Pip-Sync

Why should you care? Well, more companies and teams are starting to use pip-compile and pip-sync instead of the classic pip freeze stuff. So this could be the new norm in a couple of years. This article discusses:

  • difference in generating requirements.txt
  • difference in installing stuff from requirements.txt

First things first, Python virtual environment

python -m venv env      # create a virtual Python environment named 'env'

env\Scripts\activate.bat    # activating env for Windows

source env\bin\activate     # activating env for MacOS/Linux

It is good practice to use a Python virtual environment so that we can install certain versions of our libraries without these installations messing with our main Python interpreter.

Click Here

Tags: Compile Pip