Use the virtual environment to get all necessary packages
. .venv/bin/activate

Add path of the library to the venv:

cd $(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")
echo /some/library/path > some-library.pth

Get requirements for the project:
% pipreqs src/ # Create requirements file based on import statements in the source file
alternatively:
% pip freeze # But this reports all installed libraries in the environment, which is not exactly the needed requirements
