Cannot import SQLDatabaseChain #29028
-
I am trying to use the SQLDatabaseChain module. I have tried importing from from |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
@ChibuikeOnuba Hello there! I'm here to help you with any bugs, questions, or contributions. Let's get to the bottom of this together. To import the from langchain_experimental.sql import SQLDatabaseChain Make sure you have the correct version of LangChain and its dependencies installed. You can install the necessary packages with: pip install --upgrade langchain-community langchainhub langgraph Additionally, ensure that your environment is set up correctly, including any necessary environment variables and database setup [1]. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
Beta Was this translation helpful? Give feedback.
-
my database is correctly setup
|
Beta Was this translation helpful? Give feedback.
-
Got this again
|
Beta Was this translation helpful? Give feedback.
-
fixed it
|
Beta Was this translation helpful? Give feedback.
fixed it
Here are the dependencies you need to be installed
langchain
langchain_community
langchain_experimental