I am not able to get to simple package install and get to step2.
%pip install -U langchain
%pip show langchain – 1.1.o version.
from langchain.agents import create_agent
I am not able to get to simple package install and get to step2.
%pip install -U langchain
%pip show langchain – 1.1.o version.
from langchain.agents import create_agent
Hi!
Based on your screenshot, you have langchain 1.1.0 installed, but the import fails.
Please try the following:
After %pip install, the kernel can still have the old module cached. Go to Kernel → Restart (or Runtime → Restart Runtime in Colab).
%pip uninstall langchain langchain-core langgraph -y
%pip install langchain langchain-core langgraph
Then restart the kernel and run:
from langchain.agents import create_agent
If nothing helps, please gather version info for troubleshooting, run:
!pip list | grep -E "langchain|langgraph"
And provide the output of this command.