HF RL Explorer

Task: Create a Script to Sync Pip Packages with a Requirements File

Task: Create a Script to Sync Pip Packages with a Requirements File: a task in Terminal-Lego-15k (Harbor dataset). In Python development, pip install -r requirements.txt only installs packages listed in a requirements file. However, it does not uninstall packages that are no longer listed. Your…

The task

In Python development, `pip install -r requirements.txt` only **installs** packages listed in a requirements file. However, it does not **uninstall** packages that are no longer listed. Your task is to create a shell script that synchronizes the installed pip packages with a requirements file — meaning it should:

Part of PrimeIntellect/Terminal-Lego-15k.