Reduce the installation footprint using optional dependencies
Feature Request
Langflow should support some kind of "optional" dependencies rather than importing everything.
e.g. pip install langflow[all], or pip install langflow[base], or something like that.
Motivation
Langflow has an enormous import footprint, because it imports the required libraries for all connectors.
Most of these connectors will not be used, so users should be able to avoid importing them.
This has caused issues for several people, in #4913, #4964.
Your Contribution
No response
Hey @robertmartin8
You can install langflow-base which contains only the necessary dependencies to run langflow. It does break almost all Components and requires you to install the ones you use, though.
Hi, @robertmartin8. I'm Dosu, and I'm helping the langflow team manage their backlog. I'm marking this issue as stale.
Issue Summary
- You suggested implementing optional dependencies to reduce Langflow's installation footprint.
- The current setup imports all libraries for connectors, causing issues as noted in previous reports (#4913, #4964).
- @ogabrielluiz mentioned that installing
langflow-baseprovides only essential dependencies, but this breaks most components and requires additional installations.
Next Steps
- Could you confirm if this issue is still relevant to the latest version of the langflow repository? If so, please comment to keep the discussion open.
- If there is no further activity, this issue will be automatically closed in 7 days.
Thank you for your understanding and contribution!