poetry init
 
poetry add $(cat requirements.txt)
 
poetry install

This will create pyproject.toml in you dir and install all the dependencies.


Reference:

  • Me, and Stackoverflow