Comment: use Poetry instead of pip freeze
Have to get working with heroku
link
But it looks as though you can use poetry instead. Will probably require some setting up:
The Python Poetry Buildpack prepares the build to be processed by a Python buildpack such as heroku/python by generating requirements.txt and runtime.txt from poetry.lock. With that said, your repo cannot have a requirements.txt, it will be exported from Poetry (for runtime.txt see below).
Comment: use Poetry instead of pip freeze
Have to get working with heroku
link
But it looks as though you can use poetry instead. Will probably require some setting up: