python - How to import requirements.txt from an existing project using Poetry

الحالة::مؤرشفة الرابط: https://stackoverflow.com/a/62787881/10371745 المعرفة:: Python

poetry doesn’t support this directly. But if you have a handmade list of required packages (at best without any version numbers), that only contain the main dependencies and not the dependencies of a dependency you could do this:

cat requirements.txt | xargs poetry add