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:UsersComputeranaconda3python.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('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:UsersComputerAppDataLocalTemppip-wheel-mnv7lq0f'
cwd: C:UsersComputerAppDataLocalTemppip-install-zlefje0xnumba_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:UsersComputeranaconda3python.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('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:UsersComputerAppDataLocalTemppip-wheel-7mb2w19u'
cwd: C:UsersComputerAppDataLocalTemppip-install-zlefje0xllvmlite_4c2699e7f4e54dcb91e5fdbb477099bf
Complete output (24 lines):
running bdist_wheel
C:UsersComputeranaconda3python.exe C:UsersComputerAppDataLocalTemppip-install-zlefje0xllvmlite_4c2699e7f4e54dcb91e5fdbb477099bfffibuild.py
Trying generator 'Visual Studio 14 2015 Win64'
Traceback (most recent call last):
File "C:UsersComputerAppDataLocalTemppip-install-zlefje0xllvmlite_4c2699e7f4e54dcb91e5fdbb477099bfffibuild.py", line 192, in <module>
main()
File "C:UsersComputerAppDataLocalTemppip-install-zlefje0xllvmlite_4c2699e7f4e54dcb91e5fdbb477099bfffibuild.py", line 180, in main
main_win32()
File "C:UsersComputerAppDataLocalTemppip-install-zlefje0xllvmlite_4c2699e7f4e54dcb91e5fdbb477099bfffibuild.py", line 89, in main_win32
generator = find_win32_generator()
File "C:UsersComputerAppDataLocalTemppip-install-zlefje0xllvmlite_4c2699e7f4e54dcb91e5fdbb477099bfffibuild.py", line 77, in find_win32_generator
try_cmake(cmake_dir, build_dir, generator)
File "C:UsersComputerAppDataLocalTemppip-install-zlefje0xllvmlite_4c2699e7f4e54dcb91e5fdbb477099bfffibuild.py", line 28, in try_cmake
subprocess.check_call(['cmake', '-G', generator, cmake_dir])
File "C:UsersComputeranaconda3libsubprocess.py", line 368, in check_call
retcode = call(*popenargs, **kwargs)
File "C:UsersComputeranaconda3libsubprocess.py", line 349, in call
with Popen(*popenargs, **kwargs) as p:
File "C:UsersComputeranaconda3libsubprocess.py", line 951, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:UsersComputeranaconda3libsubprocess.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++构建工具。

相关内容

  • 没有找到相关文章

最新更新