在 jupyter notebook 中安装 spacy_readability
Installing spacy_readability in jupyter notebook
我正在尝试在 jupyter 中使用 spacy 和一些相关的包
!pip install spacy --user
工作正常,但是
!pip install spacy_readability --user
导致错误:
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.
知道怎么做
你可能错过了 ujson
.
安装spacy-readability
:
需要为 ujson
构建和创建轮子。
这是我的笔记本的屏幕截图,当我尝试安装 spacy-readability
此外,从错误消息来看,您似乎需要 Microsoft Visual C++ 14.0
或更高版本(如果您使用的是旧版本)。
要安装 ujson
尝试 !pip install ujson
我正在尝试在 jupyter 中使用 spacy 和一些相关的包
!pip install spacy --user
工作正常,但是
!pip install spacy_readability --user
导致错误:
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.
知道怎么做
你可能错过了 ujson
.
安装spacy-readability
:
需要为 ujson
构建和创建轮子。
这是我的笔记本的屏幕截图,当我尝试安装 spacy-readability
此外,从错误消息来看,您似乎需要 Microsoft Visual C++ 14.0
或更高版本(如果您使用的是旧版本)。
要安装 ujson
尝试 !pip install ujson