英文:
What does `pip install unstructured[local-inference]` do?
问题
我在跟随一个关于Langchain的教程,使用loader.load()
加载PDF文件后,出现了错误,并建议我安装一些缺少的依赖项,使用pip install unstructured[local-inference]
。所以,我就这样做了。但现在它正在安装大量的包。其中很多包括一些与nvidia-*
有关的包。有人可以解释一下这个命令是做什么的吗?这个命令花了好几个小时才完成。
英文:
I was following a tutorial on langchain, and after using loader.load() to load a PDF file, it gave me an error and suggested that some dependencies are missing and I should install them using pip install unstructured[local-inference]
. So, I did. But it is now installing a whole lot of packages. A whole lot of it includes some packages to do with nvidia-*
. Can someone please explain what this command does? It took a good couple of hours for this command to complete.
答案1
得分: 2
当你运行“pip install unstructured”时,你只安装了“unstructured”包,没有安装其他依赖项。
另一方面,如果你使用命令“pip install unstructured[local-inference]”,除了安装“unstructured”包之外,你还会额外安装“local-inference”包作为依赖项。
在需要对保存在本地系统上的数据进行预测的情况下,“local-inference”包提供了一组工具和实用程序,用于在机器学习模型上进行本地推理。
此外,根据文档中所述,如果你不需要处理PDF或图片,你可以使用pip install unstructured。
英文:
When you run "pip install unstructured," you simply install the "unstructured" package; no other dependencies are installed.
On the other hand, if you use the command "pip install unstructured[local-inference]", you additionally install the "local-inference" package as a dependency in addition to the "unstructured" package.
In situations when you must make predictions on data that is kept locally on your system, the "local-inference" package offers a collection of tools and utilities for doing local inference with machine learning models.
Additionally, as stated in the documentation, you may use pip install unstructured if you do not need to handle PDFs or pictures
答案2
得分: 1
这是安装 'unstructured' 包的命令。它用于预处理文本文档,如PDF、HTML和Word文档。因此,它可能很大并具有许多依赖项,因为它处理多种类型的文档。
英文:
It's the command that installs 'unstructured(https://pypi.org/project/unstructured/)' package. It's for pre-processing text documents such as PDFs, HTML and Word Documents.
So, it might be big and have many dependancies since it processes several types of documents.
答案3
得分: -1
正确的方法是:pip install "unstructured[local-inference]"
英文:
the right method is:pip install "unstructured[local-inference]"
答案4
得分: -2
I installed unstructured already but I still had the same problem.
it seems like the correct way to do it is to do
pip install "unstructured[local-inference]"
instead of
pip install unstructured
here's the documentation that I got this info from:
unstructured
英文:
I installed unstructured already but I still had the same problem.
it seems like the correct way to do it is to do
pip install "unstructured[local-inference]"
instead of
pip install unstructured
here's the documentation that I got this info from:
unstructured
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论