简体   繁体   English

无法使用 pip install spacy 安装 spacy

[英]Unable to install spacy using pip install spacy

I attempt to install spacy in my Python using conda install spacy at anaconda prompt.我尝试在anaconda提示符下使用conda install spacy install spacy 在我的Pythonconda install spacy However, the prompt returns a lot of conflicts.但是,提示返回很多冲突。 Some of them are他们之中有一些是

Package lxml conflicts for:
anaconda==2019.07=py3_0 -> lxml==4.3.4=py3h1350720_0

Package openpyxl conflicts for:
anaconda==2019.07=py3_0 -> openpyxl==2.6.2=py_0

Package regex conflicts for:
spacy -> regex[version='2017.4.5|>=2017.4.0,<201.12.1|>=2017.4.0,<=2018.6.21>=2017.4.0,<=2018.7.11|>=2017.4.1,<2017.12.1|>=2018.01.10']

I tried pip install spacy as well.我也试过pip install spacy But after installing build dependencies, the prompt returns a lot of spacy error complete output from command.但是在安装构建依赖项后,提示会从命令中返回很多 spacy error complete 输出。 The full error list is the same as here .完整的错误列表与此处相同。

根据https://spacy.io/usage ,您可以使用conda命令安装spacy如下所示:

conda install -c conda-forge spacy

If you have any issue still you can use directly in google colab with out installation.如果您仍然有任何问题,您可以直接在google colab 中使用而无需安装。
And Run the below command in Anaconda Prompt (Run as administrator)并在 Anaconda Prompt 中运行以下命令(以管理员身份运行)

conda install -c conda-forge spacy
Install language model安装语言模型
python -m spacy download en

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM