pip install -r要求的错误.txt

发布于 2025-01-28 23:44:14 字数 4931 浏览 3 评论 0原文

我正在关注 https://github.com/ililia-manco/word2wave 但是,当我输入命令pip install -r unignts.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.

I'm following the setup on https://github.com/ilaria-manco/word2wave but when I enter the command pip install -r requirements.txt I get all these errors.

What should I do to fix these errors?

  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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

白首有我共你 2025-02-04 23:44:14

您是否阅读了错误消息的每一行?

您是否安装了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/

/a>

确保pip -version是用于您用于项目的Python版本。

Did you read each line of the error message?

Did you install Microsoft Visual C++ 14.0 or greater?

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/

Make sure pip --version is for the Python version you're using for your project.

野鹿林 2025-02-04 23:44:14

转到 https://visalstudio.microsoft.com/visual-cpp-build-tools com /,单击下载构建工具,安装时检查✓C++构建工具。

Go to https://visualstudio.microsoft.com/visual-cpp-build-tools/, click on download build tools, Check ✓ C++ build tools when installing.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文