无法安装包压缩

2024-05-18 15:34:25 发布

您现在位置:Python中文网/ 问答频道 /正文

我在jupyter notebook中运行了!pip install contractions,它无法安装库压缩,消息如下所示

错误:

Command errored out with exit status 1: command: 'C:\Users\tassa\anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\tassa\AppData\Local\Temp\pip-install-6m7bhg7o\pyahocorasick\setup.py'"'"'; file='"'"'C:\Users\tassa\AppData\Local\Temp\pip-install-6m7bhg7o\pyahocorasick\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\tassa\AppData\Local\Temp\pip-wheel-jh2m54oo' cwd: C:\Users\tassa\AppData\Local\Temp\pip-install-6m7bhg7o\pyahocorasick\ Complete output (5 lines): running bdist_wheel running build
running build_ext building 'ahocorasick' 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 pyahocorasick ERROR: Command errored out with exit status 1: command: 'C:\Users\tassa\anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\tassa\AppData\Local\Temp\pip-install-6m7bhg7o\pyahocorasick\setup.py'"'"'; file='"'"'C:\Users\tassa\AppData\Local\Temp\pip-install-6m7bhg7o\pyahocorasick\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\tassa\AppData\Local\Temp\pip-record-b10kt37w\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\tassa\anaconda3\Include\pyahocorasick' cwd: C:\Users\tassa\AppData\Local\Temp\pip-install-6m7bhg7o\pyahocorasick
Complete output (5 lines): running install running build running build_ext building 'ahocorasick' 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:\Users\tassa\anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\tassa\AppData\Local\Temp\pip-install-6m7bhg7o\pyahocorasick\setup.py'"'"'; file='"'"'C:\Users\tassa\AppData\Local\Temp\pip-install-6m7bhg7o\pyahocorasick\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\tassa\AppData\Local\Temp\pip-record-b10kt37w\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\tassa\anaconda3\Include\pyahocorasick' Check the logs for full command output.


Tags: installpippylocalsyssetupcodeopen

热门问题