You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

VSCode中Jupyter Notebook单元格输出无法选中复制及LangChain报错求助

关于LangChain使用报错及Mac终端文本选择问题

代码运行报错情况

我在Python中尝试使用LangChain,运行以下代码:

from langchain.document_loaders import TextLoader
loader = TextLoader("Scribbles.txt")
from langchain.indexes import VectorstoreIndexCreator
index = VectorstoreIndexCreator().from_loaders([loader])  

运行后出现错误:

TypeError: issubclass() arg 1 must be a class

同时伴随大量回溯信息。

Mac终端文本选择问题

我想提取大单元格输出中的相关内容,但在Mac上无法使用CMD-A全选,且鼠标选择时无法滚动。请问有其他用户遇到过这个问题吗?

内容的提问来源于stack exchange,提问作者elksie5000

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.15 00:37:04