How to freeze packages installed only in the virtual environment, that is, without the global ones?
Install whatever you need to freeze in your virtual environment, and then
pip freeze > requirements.txt
After that install the packages in the virtual environment that you do not want to freeze.