题意:Langchain: ModuleNotFoundError: 没有名为 'langchain' 的模块
问题背景:
When I write code in VS Code, beginning with:
当我在 VS Code 中编写代码时,以以下内容开头:
import os
from langchain.chains import RetrievalQA
from langchain.llms import OpenAI
from langchain.document_loaders import TextLoader
I am met with the error: ModuleNotFoundError: No module named 'langchain'
我遇到了错误:ModuleNotFoundError: 没有名为 'langchain' 的模块。
I have updated my Python to version 3.11.4, have updated pip, and reinstalled langchain. I have also checked sys.path and the folder C:\\Python311\\Lib\\site-packages
in which the Langchain folder is, is appe