Unable to import langchain in python

Hi all,

I have been trying to import langchain package but I keep getting the error. Any idea how to import it properly?


Hello @SimonK8! Please try installing that package through the packager, or in the shell with pip install langchain.
Lemme know if this helps!


Thanks, it helped, thought it was available by default!

Happy to help! If my post solved you problem, please mark it as the solution.

The default Python repl template uses poetry so pip install langchain might not cut it, you might need to do poetry add langchain.

1 Like