L6 -- langchain.agents.agent_toolkits, the "agent_toolkits" is not a subpath

error is occurring in:

from langchain.agents.agent_toolkits import create_python_agent

looks like “create_python_agent” is not part of langchain.agents.agent_toolkit

to clarify: I am trying to run these notebooks in a local VSCode environment.

I have langchain version 0.1.16

I notice that the online (course) notebook is using an ancient version of langchain:

import langchain