简体   繁体   English

如何在pycharm中安装spacy?

[英]How to install spacy in pycharm?

This error message occurs: enter image description here出现此错误信息:在此处输入图像描述

Command "C:\\Users\\Personal\\PycharmProjects\\untitled\\venv\\Scripts\\python.exe c:\\users\\personal\\pycharmprojects\\untitled\\venv\\lib\\site-packages\\pip-19.0.3-py3.7.egg\\pip install --ignore-installed --no-user --prefix C:\\Users\\Personal\\AppData\\Local\\Temp\\pip-build-env-ovv17p4w\\overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel>0.32.0.<0.33.0 Cython cymem>=2.0.2,<2.1.0 preshed>=2.0.1,<2.1.0 murmurhash>=0.28.0,<1.1.0 thinc==7.0.0.dev6" failed with error code 1 in None命令“C:\\Users\\Personal\\PycharmProjects\\untitled\\venv\\Scripts\\python.exe c:\\users\\personal\\pycharmprojects\\untitled\\venv\\lib\\site-packages\\pip-19.0.3-py3.7.egg \\pip install --ignore-installed --no-user --prefix C:\\Users\\Personal\\AppData\\Local\\Temp\\pip-build-env-ovv17p4w\\overlay --no-warn-script-location --no -binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel>0.32.0.<0.33.0 Cython cymem>=2.0.2,<2.1.0 preshed >=2.0.1,<2.1.0 murmurhash>=0.28.0,<1.1.0 thinc==7.0.0.dev6" 失败,错误代码为 1 无

Go to Preference -> Python Interpreter -> click + -> search for spacy and install转到 Preference -> Python Interpreter -> 单击 + -> 搜索 spacy 并安装

After installation, while writing code, include the following安装后,在编写代码时,包括以下内容

import spacy进口空间

spacy.cli.download("en_core_web_sm") spacy.cli.dow​​nload("en_core_web_sm")

you can use binary or wheel file for installing spacy package.您可以使用二进制文件或轮文件来安装 spacy 包。 just go to the python environment if u have env\\scripts and pip command to install the binary file of spacy.如果你有 env\\scripts 和 pip 命令来安装 spacy 的二进制文件,只需进入 python 环境。 you can get the binary file from你可以从

https://www.lfd.uci.edu/~gohlke/pythonlibs/# https://www.lfd.uci.edu/~gohlke/pythonlibs/#

just download the file that supports your system and use it只需下载支持您系统的文件并使用它

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

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