[英]Error with pip install -r requirements.txt
我正在遵循https://github.com/ilaria-manco/word2wave上的设置,但是当我输入命令pip install -r requirements.txt
时,我得到了所有这些错误。
我应该怎么做才能修复这些错误?
ERROR: Command errored out with exit status 1:
command: 'C:\Users\Computer\anaconda3\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Computer\\AppData\\Local\\Temp\\pip-install-zlefje0x\\numba_6d911659eda14b0f8d066edc375b6f3d\\setup.py'"'"'; __file__='"'"'C:\\Users\\Computer\\AppData\\Local\\Temp\\pip-install-zlefje0x\\numba_6d911659eda14b0f8d066edc375b6f3d\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\Computer\AppData\Local\Temp\pip-wheel-mnv7lq0f'
cwd: C:\Users\Computer\AppData\Local\Temp\pip-install-zlefje0x\numba_6d911659eda14b0f8d066edc375b6f3d\
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
building 'numba._dynfunc' 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 numba
Running setup.py clean for numba
Building wheel for llvmlite (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\Computer\anaconda3\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Computer\\AppData\\Local\\Temp\\pip-install-zlefje0x\\llvmlite_4c2699e7f4e54dcb91e5fdbb477099bf\\setup.py'"'"'; __file__='"'"'C:\\Users\\Computer\\AppData\\Local\\Temp\\pip-install-zlefje0x\\llvmlite_4c2699e7f4e54dcb91e5fdbb477099bf\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\Computer\AppData\Local\Temp\pip-wheel-7mb2w19u'
cwd: C:\Users\Computer\AppData\Local\Temp\pip-install-zlefje0x\llvmlite_4c2699e7f4e54dcb91e5fdbb477099bf\
Complete output (24 lines):
running bdist_wheel
C:\Users\Computer\anaconda3\python.exe C:\Users\Computer\AppData\Local\Temp\pip-install-zlefje0x\llvmlite_4c2699e7f4e54dcb91e5fdbb477099bf\ffi\build.py
Trying generator 'Visual Studio 14 2015 Win64'
Traceback (most recent call last):
File "C:\Users\Computer\AppData\Local\Temp\pip-install-zlefje0x\llvmlite_4c2699e7f4e54dcb91e5fdbb477099bf\ffi\build.py", line 192, in <module>
main()
File "C:\Users\Computer\AppData\Local\Temp\pip-install-zlefje0x\llvmlite_4c2699e7f4e54dcb91e5fdbb477099bf\ffi\build.py", line 180, in main
main_win32()
File "C:\Users\Computer\AppData\Local\Temp\pip-install-zlefje0x\llvmlite_4c2699e7f4e54dcb91e5fdbb477099bf\ffi\build.py", line 89, in main_win32
generator = find_win32_generator()
File "C:\Users\Computer\AppData\Local\Temp\pip-install-zlefje0x\llvmlite_4c2699e7f4e54dcb91e5fdbb477099bf\ffi\build.py", line 77, in find_win32_generator
try_cmake(cmake_dir, build_dir, generator)
File "C:\Users\Computer\AppData\Local\Temp\pip-install-zlefje0x\llvmlite_4c2699e7f4e54dcb91e5fdbb477099bf\ffi\build.py", line 28, in try_cmake
subprocess.check_call(['cmake', '-G', generator, cmake_dir])
File "C:\Users\Computer\anaconda3\lib\subprocess.py", line 368, in check_call
retcode = call(*popenargs, **kwargs)
File "C:\Users\Computer\anaconda3\lib\subprocess.py", line 349, in call
with Popen(*popenargs, **kwargs) as p:
File "C:\Users\Computer\anaconda3\lib\subprocess.py", line 951, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Users\Computer\anaconda3\lib\subprocess.py", line 1420, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified
error: command 'C:\\Users\\Computer\\anaconda3\\python.exe' failed with exit code 1
----------------------------------------
ERROR: Failed building wheel for llvmlite
Running setup.py clean for llvmlite
Failed to build numba llvmlite
Installing collected packages: llvmlite, numba, torch, resampy, audioread, torchaudio, pescador, librosa
Attempting uninstall: llvmlite
Found existing installation: llvmlite 0.37.0
ERROR: Cannot uninstall 'llvmlite'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
您是否阅读了错误消息的每一行?
您是否安装了 Microsoft Visual C++ 14.0 或更高版本?
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/
https://visualstudio.microsoft.com/visual-cpp-build-tools/
确保pip --version
适用于您用于项目的 Python 版本。
访问https://visualstudio.microsoft.com/visual-cpp-build-tools/ ,点击下载构建工具,安装时勾选✓ C++ 构建工具。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.