How to freeze packages installed only in the virtual environment, that is, without the global ones?
For me (macOS) the following worked
path/to/venv/bin/pip3 freeze -l