I used to manage packages in existing projects with requirements.txt, but a memo when installing the package as it is with poetry Poetry cannot be installed directly from requirements.txt
If you are not in a poetry environment, init first
poetry init
Turn the contents of requirements.txt with a for statement and add poetry one by one.
for package in $(cat requirements.txt); do poetry add "${package}"; done
https://github.com/python-poetry/poetry/issues/46
Recommended Posts