ImportError: Could not import docarray python package. Please install it with `pip install "langchain[docarray]"`

Hi all,

I am finding that the above error keeps cropping up. I previously posted about it as a deployment issue, but it’s now appearing on my local machine while I am trying to complete this course.

I managed to get it working by installing LangChain via conda, and “LangChain[DocArray]” via pip (couldn’t find that one in conda), but has anyone come across this and have some steps to fix/avoid it?

Many thanks in advance!

Hi @Martin_Pollard,

I believe pip install docarray worked for me.

Hi Mubsi. Thanks very much. As an extra little quirk, I found that installing docarray before langchain seems to be the ticket.