freeze_requirements()

audeer.freeze_requirements(outfile)[source]

Log Python packages of activate virtual environment.

Parameters

outfile (str) – file to store the packages. Usually a name like requirements.txt.lock should be picked.

Raises

RuntimeError – if running pip freeze returns an error