mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-09-11 12:17:53 +02:00
[Docs] Add some missing installs (#649)
This commit is contained in:
@@ -116,11 +116,11 @@ def copy_notebooks():
|
||||
)
|
||||
print(f"Overriding: {src_path} to {dst_path}")
|
||||
break
|
||||
|
||||
|
||||
# Avoid double nesting.
|
||||
dst_path = dst_path.replace(
|
||||
"tutorials/tutorials", "tutorials"
|
||||
).replace("how-tos/how-tos", "how-tos")
|
||||
dst_path = dst_path.replace("tutorials/tutorials", "tutorials").replace(
|
||||
"how-tos/how-tos", "how-tos"
|
||||
)
|
||||
os.makedirs(os.path.dirname(dst_path), exist_ok=True)
|
||||
print(f"Copying: {src_path} to {dst_path}")
|
||||
shutil.copy(src_path, dst_path)
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"%%capture --no-stderr\n",
|
||||
"%pip install --quiet -U langchain langchain_openai langchainhub tavily-python"
|
||||
"%pip install --quiet -U langgraph langchain langchain_openai langchainhub tavily-python"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"%%capture --no-stderr\n",
|
||||
"%pip install --quiet -U langchain langchain_openai tavily-python"
|
||||
"%pip install --quiet -U langgraph langchain langchain_openai tavily-python"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"%%capture --no-stderr\n",
|
||||
"%pip install --quiet -U langchain langchain_openai tavily-python"
|
||||
"%pip install --quiet -U langgraph langchain langchain_openai tavily-python"
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -319,7 +319,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "stdin",
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"[y/n] continue with: tool='tavily_search_results_json' tool_input={'query': 'weather in San Francisco'} log=\"\\nInvoking: `tavily_search_results_json` with `{'query': 'weather in San Francisco'}`\\n\\n\\n\" message_log=[AIMessage(content='', additional_kwargs={'function_call': {'arguments': '{\"query\":\"weather in San Francisco\"}', 'name': 'tavily_search_results_json'}})]? y\n"
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"%%capture --no-stderr\n",
|
||||
"%pip install --quiet -U langchain langchain_openai tavily-python"
|
||||
"%pip install --quiet -U langgraph langchain langchain_openai tavily-python"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"%%capture --no-stderr\n",
|
||||
"%pip install --quiet -U langchain langchain_openai tavily-python"
|
||||
"%pip install --quiet -U langgraph langchain langchain_openai tavily-python"
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -645,7 +645,7 @@
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.11.2"
|
||||
"version": "3.12.2"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
|
||||
+2
-2
@@ -40,7 +40,7 @@
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"%%capture --no-stderr\n",
|
||||
"%pip install --quiet -U langchain langchain_openai tavily-python"
|
||||
"%pip install --quiet -U langgraph langchain langchain_openai tavily-python"
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -591,7 +591,7 @@
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.11.2"
|
||||
"version": "3.12.2"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"%%capture --no-stderr\n",
|
||||
"%pip install --quiet -U langchain langchain_openai tavily-python"
|
||||
"%pip install --quiet -U langgraph langchain langchain_openai tavily-python"
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -493,7 +493,7 @@
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.11.2"
|
||||
"version": "3.12.2"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"%%capture --no-stderr\n",
|
||||
"%pip install --quiet -U langchain langchain_openai tavily-python"
|
||||
"%pip install --quiet -U langgraph langchain langchain_openai tavily-python"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
@@ -174,7 +174,7 @@
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"%%capture --no-stderr\n",
|
||||
"%pip install --quiet -U langchain langchain_openai tavily-python"
|
||||
"%pip install --quiet -U langgraph langchain langchain_openai tavily-python"
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -634,7 +634,7 @@
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.11.2"
|
||||
"version": "3.12.2"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
|
||||
@@ -1036,7 +1036,7 @@
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.11.2"
|
||||
"version": "3.12.2"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"%%capture --no-stderr\n",
|
||||
"%pip install --quiet -U langchain langchain_openai tavily-python"
|
||||
"%pip install --quiet -U langgraph langchain langchain_openai tavily-python"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
@@ -38,8 +38,9 @@
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"# %pip install -U --quiet langchain langgraph langchain_openai\n",
|
||||
"# %pip install -U --quiet tavily-python"
|
||||
"%%capture --no-stderr\n",
|
||||
"%pip install -U --quiet langchain langgraph langchain_openai\n",
|
||||
"%pip install -U --quiet tavily-python"
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -49,7 +50,7 @@
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"from __future__ import annotations\n",
|
||||
"from __future__ import annotations # noqa: F404\n",
|
||||
"\n",
|
||||
"import getpass\n",
|
||||
"import os\n",
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"!pip install --quiet -U langchain langchain_openai tavily-python"
|
||||
"!%pip install --quiet -U langgraph langchain langchain_openai tavily-pythonvily-python"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
@@ -27,8 +27,8 @@
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"# %%capture --no-stderr\n",
|
||||
"# %pip install -U langchain langchain_openai langchain_experimental langsmith pandas"
|
||||
"%%capture --no-stderr\n",
|
||||
"%pip install -U langgraph langchain langchain_openai langchain_experimental langsmith pandas"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"%%capture --no-stderr\n",
|
||||
"%pip install --quiet -U langchain langchain_openai"
|
||||
"%pip install --quiet -U langgraph langchain langchain_openai"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"%%capture --no-stderr\n",
|
||||
"%pip install --quiet -U langchain-community langchain-openai tavily-python"
|
||||
"%pip install --quiet -U langgraph langchain-community langchain-openai tavily-python"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
@@ -609,7 +609,7 @@
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.11.2"
|
||||
"version": "3.12.2"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
|
||||
@@ -48,9 +48,10 @@
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"# %pip install -U langchain_community langchain_openai langgraph wikipedia scikit-learn langchain_fireworks\n",
|
||||
"%%capture --no-stderr\n",
|
||||
"%pip install -U langchain_community langchain_openai langgraph wikipedia scikit-learn langchain_fireworks\n",
|
||||
"# We use one or the other search engine below\n",
|
||||
"# %pip install -U duckduckgo tavily-python"
|
||||
"%pip install -U duckduckgo tavily-python"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
@@ -423,7 +423,7 @@
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.11.2"
|
||||
"version": "3.12.2"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
|
||||
@@ -29,24 +29,12 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 1,
|
||||
"execution_count": null,
|
||||
"id": "af83b042",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"\u001b[31mERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.\n",
|
||||
"langchain-experimental 0.0.47 requires langchain<0.1,>=0.0.350, but you have langchain 0.1.4 which is incompatible.\u001b[0m\u001b[31m\n",
|
||||
"\u001b[0m\n",
|
||||
"\u001b[1m[\u001b[0m\u001b[34;49mnotice\u001b[0m\u001b[1;39;49m]\u001b[0m\u001b[39;49m A new release of pip is available: \u001b[0m\u001b[31;49m23.3.1\u001b[0m\u001b[39;49m -> \u001b[0m\u001b[32;49m24.0\u001b[0m\n",
|
||||
"\u001b[1m[\u001b[0m\u001b[34;49mnotice\u001b[0m\u001b[1;39;49m]\u001b[0m\u001b[39;49m To update, run: \u001b[0m\u001b[32;49mpip install --upgrade pip\u001b[0m\n",
|
||||
"Note: you may need to restart the kernel to use updated packages.\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"%%capture --no-stderr\n",
|
||||
"%pip install -U --quiet langgraph langsmith langchain_openai"
|
||||
]
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user