首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在jupyter笔记本上安装spacy_readability

在jupyter笔记本上安装spacy_readability
EN

Stack Overflow用户
提问于 2022-02-03 22:02:15
回答 1查看 99关注 0票数 1

我试图在jupyter中使用spacy和一些相关的包。

代码语言:javascript
复制
!pip install spacy --user

很好,但是

代码语言:javascript
复制
!pip install spacy_readability --user

结果出现错误:

代码语言:javascript
复制
ERROR: Command errored out with exit status 1:
   command: 'C:\ProgramData\Anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Desktop PC\\AppData\\Local\\Temp\\pip-install-5abs2tnd\\ujson_1413fc5067b64d23bce53331a88761c9\\setup.py'"'"'; __file__='"'"'C:\\Users\\Desktop PC\\AppData\\Local\\Temp\\pip-install-5abs2tnd\\ujson_1413fc5067b64d23bce53331a88761c9\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\Desktop PC\AppData\Local\Temp\pip-wheel-vccpv_5b'
       cwd: C:\Users\Desktop PC\AppData\Local\Temp\pip-install-5abs2tnd\ujson_1413fc5067b64d23bce53331a88761c9\
  Complete output (6 lines):
  Warning: 'classifiers' should be a list, got type 'filter'
  running bdist_wheel
  running build
  running build_ext
  building 'ujson' extension
  error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
  ----------------------------------------
  ERROR: Failed building wheel for ujson
    ERROR: Command errored out with exit status 1:
     command: 'C:\ProgramData\Anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Desktop PC\\AppData\\Local\\Temp\\pip-install-5abs2tnd\\ujson_1413fc5067b64d23bce53331a88761c9\\setup.py'"'"'; __file__='"'"'C:\\Users\\Desktop PC\\AppData\\Local\\Temp\\pip-install-5abs2tnd\\ujson_1413fc5067b64d23bce53331a88761c9\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Desktop PC\AppData\Local\Temp\pip-record-s9u60ttf\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\Desktop PC\AppData\Roaming\Python\Python38\Include\ujson'
         cwd: C:\Users\Desktop PC\AppData\Local\Temp\pip-install-5abs2tnd\ujson_1413fc5067b64d23bce53331a88761c9\
    Complete output (6 lines):
    Warning: 'classifiers' should be a list, got type 'filter'
    running install
    running build
    running build_ext
    building 'ujson' extension
    error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\ProgramData\Anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Desktop PC\\AppData\\Local\\Temp\\pip-install-5abs2tnd\\ujson_1413fc5067b64d23bce53331a88761c9\\setup.py'"'"'; __file__='"'"'C:\\Users\\Desktop PC\\AppData\\Local\\Temp\\pip-install-5abs2tnd\\ujson_1413fc5067b64d23bce53331a88761c9\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Desktop PC\AppData\Local\Temp\pip-record-s9u60ttf\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\Desktop PC\AppData\Roaming\Python\Python38\Include\ujson' Check the logs for full command output.

知不知道如何

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2022-02-04 04:34:57

你可能错过了ujson

安装spacy-readability

需要为ujson建立和创建车轮。

这是我笔记本上的截图,当我试图安装spacy-readability

此外,从错误消息中可以看出,如果您的版本较旧,则需要Microsoft Visual C++ 14.0或更高版本。

要安装ujson,请尝试!pip install ujson

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/70978923

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档