Skip to main content
 首页 » 编程设计

python之pip install nlp 找不到匹配的分布

2024年10月01日7emanlee

我是 Ubuntu 和 Python 的新手,正在练习 Python 的 Spacy 库。我正在关注 this tutorial对于使用 nlp 模块的 Spacy 库。因此,我必须安装它,但是当我使用以下命令时

pip install nlp 

然后它给出如下结果:

Collecting nlp 
  Could not find a version that satisfies the requirement nlp (from versions: ) 
No matching distribution found for nlp 

我搜索了它,但直到现在还没有找到任何解决方案。

请您参考如下方法:

你需要使用这个:

import spacy 
nlp = spacy.load('en')