Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Poetry - Install dependencies from requirements.txt #2

Closed
Jithsaavvy opened this issue Aug 28, 2022 · 1 comment
Closed

Poetry - Install dependencies from requirements.txt #2

Jithsaavvy opened this issue Aug 28, 2022 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@Jithsaavvy
Copy link
Owner

When using poetry over pip, it is possible to add and install dependencies using poetry add. But, what if there are multiple dependencies specified in requirements.txt (conventional way) ?

@Jithsaavvy
Copy link
Owner Author

  1. If the project only requires very minimal packages, it is fine to install one by one manually. But, for any large-scale projects where the dependencies (packages, local, repositories) are huge, the manual method is not feasible.
  2. Poetry doesn't directly support this (not mentioned in their docs), but it can still be done by using the following linux command:
   $ cat requirements.txt | xargs poetry add
  1. There are other ways and commands to do the same, but this is quite easier to use.

@Jithsaavvy Jithsaavvy added the documentation Improvements or additions to documentation label Aug 29, 2022
@Jithsaavvy Jithsaavvy pinned this issue Aug 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant