Configuring External Components in ESPHome with Additional Dependencies

I’m currently working on developing an external component for ESPHome, and I’ve encountered a challenge that I need some assistance with. In my project, I require the use of additional Python modules that aren’t included by default. I’m wondering if there’s a way to specify these dependencies so that they are automatically installed when the component is set up.

I’ve tried adding the modules manually to the Python environment, but it doesn’t seem to integrate properly with ESPHome. Has anyone else faced this issue or found a solution? Any guidance or suggestions would be greatly appreciated. Let’s collaborate to make this work smoothly!

Thanks in advance for your help and insights!