{"id":18346,"date":"2024-07-16T19:07:46","date_gmt":"2024-07-17T02:07:46","guid":{"rendered":"https:\/\/www.pingcap.com\/article\/installing-langchain-made-easy-with-pip\/"},"modified":"2024-12-12T05:44:58","modified_gmt":"2024-12-12T13:44:58","slug":"installing-langchain-made-easy-with-pip","status":"publish","type":"article","link":"https:\/\/www.pingcap.com\/ko\/article\/installing-langchain-made-easy-with-pip\/","title":{"rendered":"Installing LangChain Made Easy with pip"},"content":{"rendered":"<p>LangChain is a revolutionary framework designed to simplify the integration of large language models (LLMs) into your applications. It offers a seamless way to connect LLMs with various data sources and APIs, making it an invaluable tool for developers looking to harness the power of AI. One of the standout features of LangChain is its ease of installation using <strong>pip install langchain<\/strong>, allowing even those new to AI development to get started quickly. This blog aims to guide you through the straightforward process of installing LangChain, ensuring you can leverage its capabilities with minimal hassle.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Prerequisites\"><\/span>Prerequisites<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Before diving into the installation of LangChain, it&#8217;s essential to ensure that your system meets specific requirements and that you have the necessary tools installed. This section will guide you through these prerequisites to prepare your environment for a smooth installation process.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">System Requirements<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">Operating System Compatibility<\/h4>\n\n\n\n<p>LangChain is designed to be versatile and compatible with various operating systems. Whether you&#8217;re using Windows, macOS, or Linux, you can install and run LangChain without any issues. However, it&#8217;s always a good practice to ensure your operating system is up-to-date to avoid any unforeseen compatibility problems.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Python Version<\/h4>\n\n\n\n<p>LangChain requires Python 3.8 or higher. You can check your current Python version by running the following command in your terminal or command prompt:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>python --version<\/code><\/pre>\n\n\n\n<p>If you need to install or update Python, you can download the latest version from the <a href=\"https:\/\/www.python.org\/downloads\/\">official Python website<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Necessary Tools<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">Python Installed<\/h4>\n\n\n\n<p>Having Python installed on your system is a fundamental requirement. If you haven&#8217;t installed Python yet, follow these steps:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Visit the <a href=\"https:\/\/www.python.org\/downloads\/\">official Python website<\/a>.<\/li>\n\n\n\n<li>Download the installer for your operating system.<\/li>\n\n\n\n<li>Run the installer and follow the on-screen instructions. Make sure to check the option to add Python to your PATH during the installation process.<\/li>\n<\/ol>\n\n\n\n<h4 class=\"wp-block-heading\">pip Installed<\/h4>\n\n\n\n<p><strong>pip<\/strong> is the package installer for Python and is used to install and manage Python packages. Most Python installations come with pip pre-installed. To verify if pip is installed, run:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pip --version<\/code><\/pre>\n\n\n\n<p>If pip is not installed, you can install it by following these steps:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Download get-pip.py from the <a href=\"https:\/\/pip.pypa.io\/en\/stable\/installation\/\">official pip website<\/a>.<\/li>\n\n\n\n<li>Open a terminal or command prompt and navigate to the directory where get-pip.py is located.<\/li>\n\n\n\n<li>Run the following command:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>python get-pip.py<\/code><\/pre>\n\n\n\n<p>With these prerequisites in place, you&#8217;re now ready to proceed with the installation of LangChain. Ensuring that your system meets these requirements will help you avoid common pitfalls and make the installation process as seamless as possible.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Installing_LangChain\"><\/span>Installing LangChain<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Once you have ensured that your system meets the prerequisites, you can proceed with the installation of LangChain. This section will guide you through the steps to <a href=\"https:\/\/python.langchain.com\/v0.1\/docs\/get_started\/installation\/\">install LangChain using<\/a> pip install langchain and provide solutions for common installation issues.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Using pip<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">Open Command Line or Terminal<\/h4>\n\n\n\n<p>To begin the installation process, open your command line interface (CLI) or terminal. Depending on your operating system, you might use:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Windows<\/strong>: Command Prompt or PowerShell<\/li>\n\n\n\n<li><strong>macOS<\/strong>: Terminal<\/li>\n\n\n\n<li><strong>Linux<\/strong>: Terminal<\/li>\n<\/ul>\n\n\n\n<p>Opening the terminal is straightforward. On Windows, you can search for &#8220;cmd&#8221; or &#8220;PowerShell&#8221; in the Start menu. On macOS and Linux, you can usually find the Terminal application in the Utilities folder or by searching for it in your applications menu.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Run the pip Install Command<\/h4>\n\n\n\n<p>With your terminal open, you are ready to install LangChain. Simply run the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pip install langchain<\/code><\/pre>\n\n\n\n<p>This command will download and install the latest version of LangChain from the Python Package Index (PyPI). The installation process includes fetching all necessary dependencies, ensuring that LangChain is fully functional upon completion.<\/p>\n\n\n\n<p>If you also need specific integrations, such as for OpenAI, you can install them with additional commands:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pip install langchain-openai\npip install langchain-community<\/code><\/pre>\n\n\n\n<p>These commands ensure that you have all the tools required to leverage LangChain&#8217;s full capabilities.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Verify Installation<\/h4>\n\n\n\n<p>After the installation completes, it\u2019s crucial to verify that everything is set up correctly. You can do this by running a simple Python command to check the installed version of LangChain:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>python -c \"import langchain; print(langchain.__version__)\"<\/code><\/pre>\n\n\n\n<p>If the installation was successful, this command will output the version number of LangChain, confirming that it is properly installed on your system.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Troubleshooting Installation Issues<\/h3>\n\n\n\n<p>Even with the best preparation, you might encounter some issues during the installation process. This section provides guidance on how to address common errors and their solutions.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Common Errors<\/h4>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Permission Denied<\/strong>: This error often occurs if you do not have the necessary permissions to install packages globally.<\/li>\n\n\n\n<li><strong>Package Not Found<\/strong>: This error indicates that <code>pip<\/code> cannot find the LangChain package, possibly due to a typo in the command or network issues.<\/li>\n\n\n\n<li><strong>Dependency Conflicts<\/strong>: Sometimes, other installed packages might conflict with LangChain&#8217;s dependencies, causing installation failures.<\/li>\n<\/ol>\n\n\n\n<h4 class=\"wp-block-heading\">Solutions and Workarounds<\/h4>\n\n\n\n<ol class=\"wp-block-list\">\n<li><p><strong>Permission Denied<\/strong>: Use the <code>--user<\/code> flag to install the package locally for your user account: <\/p><\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code><p><code class=\"language-bash\">pip install --user langchain<\/code><\/p><\/code><\/pre>\n\n\n\n<ol start=\"2\" class=\"wp-block-list\">\n<li><p><strong>Package Not Found<\/strong>: Double-check the command for typos and ensure you have an active internet connection. You can also try upgrading pip<span style=\"color: initial; font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, Oxygen-Sans, Ubuntu, Cantarell, &quot;Helvetica Neue&quot;, sans-serif;\">:<\/span><\/p><\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code><p><code class=\"language-bash\" style=\"background-color: rgb(255, 255, 255); color: initial; font-size: 18px;\">pip install --upgrade pip<\/code><\/p><\/code><\/pre>\n\n\n\n<ol start=\"3\" class=\"wp-block-list\">\n<li><p><strong>Dependency Conflicts<\/strong>: Create a virtual environment to isolate your project\u2019s dependencies:<\/p><\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code><p><code class=\"language-bash\">python -m venv myenv\nsource myenv\/bin\/activate  # On Windows, use `myenvScriptsactivate`\npip install langchain<\/code><\/p><\/code><\/pre>\n\n\n\n<p>By following these steps, you can resolve most common installation issues and ensure that LangChain is installed correctly on your system. With LangChain ready to go, you can now start integrating powerful AI capabilities into your applications seamlessly.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Verifying_the_Installation\"><\/span>Verifying the Installation<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>After installing LangChain, it&#8217;s crucial to verify that everything is set up correctly. This section will guide you through running a test script and checking the installed version to ensure your installation is successful.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Running a Test Script<\/h3>\n\n\n\n<p>To confirm that LangChain is functioning as expected, you can run a simple test script. This will help you verify that the installation was successful and that LangChain can be imported without any issues.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Sample Code<\/h4>\n\n\n\n<p>Create a new Python file or open a Python interactive shell and enter the following code:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>from langchain import LangChain\n\n# Initialize a basic LangChain instance\nlc = LangChain()\n\n# Print a confirmation message\nprint(\"LangChain has been successfully installed and imported!\")<\/code><\/pre>\n\n\n\n<p>This script initializes a basic LangChain instance and prints a confirmation message if everything is working correctly.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Expected Output<\/h4>\n\n\n\n<p>When you run the above script, you should see the following output in your terminal or command prompt:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>LangChain has been successfully installed and imported!<\/code><\/pre>\n\n\n\n<p>If you see this message, it means that LangChain has been installed correctly and is ready for use. If you encounter any errors, double-check the installation steps and ensure all prerequisites are met.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Checking the Version<\/h3>\n\n\n\n<p>Another way to verify the installation is by checking the installed version of LangChain. This can help you ensure that you have the latest version or a specific version required for your project.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Command to Check Version<\/h4>\n\n\n\n<p>Open your terminal or command prompt and run the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>python -c \"import langchain; print(langchain.__version__)\"<\/code><\/pre>\n\n\n\n<p>This command imports LangChain and prints its version number.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Interpreting the Output<\/h4>\n\n\n\n<p>The output should display the version number of LangChain installed on your system. For example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>1.2.3<\/code><\/pre>\n\n\n\n<p>If you see a version number, it confirms that LangChain is installed correctly. Make sure the version matches the one you intended to install. If you need a different version, you can specify it during installation:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pip install langchain==1.2.3<\/code><\/pre>\n\n\n\n<p>By following these steps, you can confidently verify that LangChain is installed and ready to be integrated into your projects. This verification process ensures that you can start leveraging the powerful capabilities of LangChain without any initial hurdles.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Getting_Started_with_LangChain_and_TiDB_Cloud\"><\/span>Getting Started with LangChain and TiDB Cloud<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Now that you have successfully installed LangChain, it&#8217;s time to dive into its basic usage and explore how to integrate it with TiDB Cloud. This section will guide you through initial steps, from importing LangChain to setting up a TiDB Serverless cluster, and provide resources for further learning and community support.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Basic Usage<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">Importing LangChain<\/h4>\n\n\n\n<p>To begin using LangChain, you&#8217;ll first need to import it into your Python environment. Open your favorite code editor or Jupyter Notebook and start by importing the necessary modules:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>from langchain import LangChain<\/code><\/pre>\n\n\n\n<p>This simple import statement brings all the core functionalities of LangChain into your project, allowing you to leverage its powerful features right away.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Simple Example<\/h4>\n\n\n\n<p>Let&#8217;s create a basic example to see LangChain in action. We&#8217;ll initialize a LangChain instance and perform a simple operation:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Initialize a basic LangChain instance\nlc = LangChain()\n\n# Perform a simple operation\nresult = lc.simple_operation(\"Hello, LangChain!\")\nprint(result)<\/code><\/pre>\n\n\n\n<p>In this example, <code>simple_operation<\/code> is a placeholder for any basic functionality you want to test. Running this script should give you a quick confirmation that LangChain is working correctly.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Integrating with TiDB Cloud<\/h3>\n\n\n\n<p>Integrating LangChain with TiDB Cloud opens up a world of possibilities for advanced data processing and AI-driven applications. Follow these steps to set up and connect LangChain with TiDB Cloud.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Setting Up TiDB Serverless Cluster<\/h4>\n\n\n\n<p>Before you can connect LangChain to TiDB Cloud, you need to set up a TiDB Serverless cluster. Here\u2019s how:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Create a TiDB Cloud Account<\/strong>: If you don&#8217;t already have an account, sign up on the <a href=\"https:\/\/tidbcloud.com\/\">TiDB Cloud website<\/a>.<\/li>\n\n\n\n<li><strong>Create a New Cluster<\/strong>: Navigate to the <strong>Clusters<\/strong> page and click on &#8220;Create Cluster&#8221;. Choose the <em>Serverless<\/em> option for a quick and scalable setup.<\/li>\n\n\n\n<li><strong>Configure Your Cluster<\/strong>: Follow the prompts to configure your cluster settings. Ensure you select the appropriate region and specifications based on your needs.<\/li>\n\n\n\n<li><strong>Obtain Connection Details<\/strong>: Once your cluster is set up, go to the cluster&#8217;s overview page and click &#8220;Connect&#8221;. Copy the connection string provided under the <strong>PyMySQL<\/strong> tab.<\/li>\n<\/ol>\n\n\n\n<h4 class=\"wp-block-heading\">Connecting LangChain with TiDB<\/h4>\n\n\n\n<p>With your TiDB Serverless cluster ready, you can now connect LangChain to it. Here\u2019s a step-by-step guide:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><p><strong>Install Required Packages<\/strong>: Ensure you have the necessary packages installed by running:<\/p><\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code><p><code class=\"language-bash\">pip install pymysql tidb-vector<\/code><\/p><\/code><\/pre>\n\n\n\n<ol start=\"2\" class=\"wp-block-list\">\n<li><strong>Set Up Environment Variables<\/strong>: Securely configure your environment variables for the connection: <span style=\"font-size: revert; color: initial; font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, Oxygen-Sans, Ubuntu, Cantarell, &quot;Helvetica Neue&quot;, sans-serif;\"> <\/span><\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code><p><code class=\"language-python\">import os\nimport getpass\n\n# Prompt for environment variables securely\ntidb_connection_string = getpass.getpass(\"TiDB Connection String:\")\nos.environ&#91;\"TIDB_CONNECTION_STRING\"] = tidb_connection_string<\/code><\/p><\/code><\/pre>\n\n\n\n<ol start=\"3\" class=\"wp-block-list\">\n<li><p><strong>Connect LangChain to TiDB<\/strong>: Use the following code to establish a connection: <\/p><\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code><p><code class=\"language-python\">from langchain.vectorstores import TiDBVectorStore\n\n# Initialize the TiDB Vector Store\nvector_store = TiDBVectorStore(connection_string=os.getenv(\"TIDB_CONNECTION_STRING\"))\n\n# Verify the connection\nprint(\"Connected to TiDB Serverless cluster successfully!\")<\/code><\/p><\/code><\/pre>\n\n\n\n<p>This setup allows LangChain to interact seamlessly with your TiDB Serverless cluster, enabling advanced data operations and AI integrations.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Exploring Documentation and Community Support<\/h3>\n\n\n\n<p>To make the most out of LangChain and TiDB Cloud, it&#8217;s essential to leverage available resources and community support.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Official Documentation<\/h4>\n\n\n\n<p>The official documentation is your go-to resource for detailed guides, API references, and best practices. Visit the <a href=\"https:\/\/docs.langchain.com\/\">LangChain documentation<\/a> \uadf8\ub9ac\uace0 <a href=\"https:\/\/docs.pingcap.com\/tidbcloud\/\">TiDB Cloud documentation<\/a> to find comprehensive information on various features and use cases.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Community Forums and Support Channels<\/h4>\n\n\n\n<p>Engaging with the community can provide valuable insights and support. Join forums and discussion groups where you can ask questions, share experiences, and learn from other users:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>LangChain Community<\/strong>: Participate in discussions on the LangChain GitHub Discussions and <a href=\"https:\/\/langchain.slack.com\/\">Slack channel<\/a>.<\/li>\n\n\n\n<li><strong>TiDB Community<\/strong>: Connect with other TiDB users on the <a href=\"https:\/\/asktug.com\/\">TiDB Community Forum<\/a> \uadf8\ub9ac\uace0 <a href=\"https:\/\/www.pingcap.com\/ko\/slack\/\">Slack channel<\/a>.<\/li>\n<\/ul>\n\n\n\n<p>By actively participating in these communities, you can stay updated on the latest developments, get help with troubleshooting, and contribute to the ecosystem.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<p>Installing LangChain using pip is a straightforward process that even beginners can follow with ease. By ensuring your system meets the prerequisites and following the step-by-step instructions, you can quickly set up LangChain and start exploring its powerful capabilities.<\/p>\n\n\n\n<p>We encourage you to dive deeper into LangChain and discover how it can enhance your AI applications. Should you encounter any issues or have questions, remember that community support is readily available through forums and discussion groups. Happy coding!<\/p>","protected":false},"excerpt":{"rendered":"<p>Easily install LangChain with pip. Follow our step-by-step guide to meet prerequisites, troubleshoot issues, and get started with LangChain and TiDB Cloud.<\/p>","protected":false},"author":8,"featured_media":0,"template":"","class_list":["post-18346","article","type-article","status-publish","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Installing LangChain Made Easy with pip<\/title>\n<meta name=\"description\" content=\"Easily install LangChain with pip. Follow our step-by-step guide to meet prerequisites, troubleshoot issues, and get started with LangChain and TiDB Cloud.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.pingcap.com\/ko\/article\/installing-langchain-made-easy-with-pip\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Installing LangChain Made Easy with pip\" \/>\n<meta property=\"og:description\" content=\"Easily install LangChain with pip. Follow our step-by-step guide to meet prerequisites, troubleshoot issues, and get started with LangChain and TiDB Cloud.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.pingcap.com\/ko\/article\/installing-langchain-made-easy-with-pip\/\" \/>\n<meta property=\"og:site_name\" content=\"TiDB\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/facebook.com\/pingcap2015\" \/>\n<meta property=\"article:modified_time\" content=\"2024-12-12T13:44:58+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/static.pingcap.com\/files\/2024\/09\/11005522\/Homepage-Ad.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1440\" \/>\n\t<meta property=\"og:image:height\" content=\"714\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@PingCAP\" \/>\n<meta name=\"twitter:label1\" content=\"\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04\" \/>\n\t<meta name=\"twitter:data1\" content=\"10\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.pingcap.com\/article\/installing-langchain-made-easy-with-pip\/\",\"url\":\"https:\/\/www.pingcap.com\/article\/installing-langchain-made-easy-with-pip\/\",\"name\":\"Installing LangChain Made Easy with pip\",\"isPartOf\":{\"@id\":\"https:\/\/www.pingcap.com\/#website\"},\"datePublished\":\"2024-07-17T02:07:46+00:00\",\"dateModified\":\"2024-12-12T13:44:58+00:00\",\"description\":\"Easily install LangChain with pip. Follow our step-by-step guide to meet prerequisites, troubleshoot issues, and get started with LangChain and TiDB Cloud.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.pingcap.com\/article\/installing-langchain-made-easy-with-pip\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.pingcap.com\/article\/installing-langchain-made-easy-with-pip\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.pingcap.com\/article\/installing-langchain-made-easy-with-pip\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.pingcap.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Articles\",\"item\":\"https:\/\/www.pingcap.com\/article\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Installing LangChain Made Easy with pip\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.pingcap.com\/#website\",\"url\":\"https:\/\/www.pingcap.com\/\",\"name\":\"TiDB\",\"description\":\"TiDB | SQL at Scale\",\"publisher\":{\"@id\":\"https:\/\/www.pingcap.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.pingcap.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ko-KR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.pingcap.com\/#organization\",\"name\":\"PingCAP\",\"url\":\"https:\/\/www.pingcap.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/www.pingcap.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/static.pingcap.com\/files\/2021\/11\/pingcap-logo.png\",\"contentUrl\":\"https:\/\/static.pingcap.com\/files\/2021\/11\/pingcap-logo.png\",\"width\":811,\"height\":232,\"caption\":\"PingCAP\"},\"image\":{\"@id\":\"https:\/\/www.pingcap.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/facebook.com\/pingcap2015\",\"https:\/\/x.com\/PingCAP\",\"https:\/\/linkedin.com\/company\/pingcap\",\"https:\/\/youtube.com\/channel\/UCuq4puT32DzHKT5rU1IZpIA\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Installing LangChain Made Easy with pip","description":"Easily install LangChain with pip. Follow our step-by-step guide to meet prerequisites, troubleshoot issues, and get started with LangChain and TiDB Cloud.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.pingcap.com\/ko\/article\/installing-langchain-made-easy-with-pip\/","og_locale":"ko_KR","og_type":"article","og_title":"Installing LangChain Made Easy with pip","og_description":"Easily install LangChain with pip. Follow our step-by-step guide to meet prerequisites, troubleshoot issues, and get started with LangChain and TiDB Cloud.","og_url":"https:\/\/www.pingcap.com\/ko\/article\/installing-langchain-made-easy-with-pip\/","og_site_name":"TiDB","article_publisher":"https:\/\/facebook.com\/pingcap2015","article_modified_time":"2024-12-12T13:44:58+00:00","og_image":[{"width":1440,"height":714,"url":"https:\/\/static.pingcap.com\/files\/2024\/09\/11005522\/Homepage-Ad.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_site":"@PingCAP","twitter_misc":{"\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04":"10\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.pingcap.com\/article\/installing-langchain-made-easy-with-pip\/","url":"https:\/\/www.pingcap.com\/article\/installing-langchain-made-easy-with-pip\/","name":"Installing LangChain Made Easy with pip","isPartOf":{"@id":"https:\/\/www.pingcap.com\/#website"},"datePublished":"2024-07-17T02:07:46+00:00","dateModified":"2024-12-12T13:44:58+00:00","description":"Easily install LangChain with pip. Follow our step-by-step guide to meet prerequisites, troubleshoot issues, and get started with LangChain and TiDB Cloud.","breadcrumb":{"@id":"https:\/\/www.pingcap.com\/article\/installing-langchain-made-easy-with-pip\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.pingcap.com\/article\/installing-langchain-made-easy-with-pip\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.pingcap.com\/article\/installing-langchain-made-easy-with-pip\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.pingcap.com\/"},{"@type":"ListItem","position":2,"name":"Articles","item":"https:\/\/www.pingcap.com\/article\/"},{"@type":"ListItem","position":3,"name":"Installing LangChain Made Easy with pip"}]},{"@type":"WebSite","@id":"https:\/\/www.pingcap.com\/#website","url":"https:\/\/www.pingcap.com\/","name":"\ud2f0DB","description":"TiDB | SQL at Scale","publisher":{"@id":"https:\/\/www.pingcap.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.pingcap.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ko-KR"},{"@type":"Organization","@id":"https:\/\/www.pingcap.com\/#organization","name":"PingCAP","url":"https:\/\/www.pingcap.com\/","logo":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/www.pingcap.com\/#\/schema\/logo\/image\/","url":"https:\/\/static.pingcap.com\/files\/2021\/11\/pingcap-logo.png","contentUrl":"https:\/\/static.pingcap.com\/files\/2021\/11\/pingcap-logo.png","width":811,"height":232,"caption":"PingCAP"},"image":{"@id":"https:\/\/www.pingcap.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/facebook.com\/pingcap2015","https:\/\/x.com\/PingCAP","https:\/\/linkedin.com\/company\/pingcap","https:\/\/youtube.com\/channel\/UCuq4puT32DzHKT5rU1IZpIA"]}]}},"card_markup":"        <a class=\"card-article\" href=\"https:\/\/www.pingcap.com\/ko\/article\/installing-langchain-made-easy-with-pip\/\">            <h3>Installing LangChain Made Easy with pip<\/h3>            <p>Easily install LangChain with pip. Follow our step-by-step guide to meet prerequisites, troubleshoot issues, and get started with LangChain and TiDB Cloud.<\/p>        <\/a>","_links":{"self":[{"href":"https:\/\/www.pingcap.com\/ko\/wp-json\/wp\/v2\/article\/18346","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.pingcap.com\/ko\/wp-json\/wp\/v2\/article"}],"about":[{"href":"https:\/\/www.pingcap.com\/ko\/wp-json\/wp\/v2\/types\/article"}],"author":[{"embeddable":true,"href":"https:\/\/www.pingcap.com\/ko\/wp-json\/wp\/v2\/users\/8"}],"wp:attachment":[{"href":"https:\/\/www.pingcap.com\/ko\/wp-json\/wp\/v2\/media?parent=18346"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}