[Python] Speechbrain library installation failure

Discussão em 'Python' iniciado por Stack, Janeiro 11, 2025.

  1. Stack

    Stack Membro Participativo

    Collecting speechbrain Using cached speechbrain-1.0.2-py3-none-any.whl.metadata (23 kB) Collecting hyperpyyaml (from speechbrain) Using cached HyperPyYAML-1.2.2-py3-none-any.whl.metadata (7.6 kB) Requirement already satisfied: joblib in c:\users\amogh g c\documents\voice_detection.venv\lib\site-packages (from speechbrain) (1.4.2)
    Requirement already satisfied: numpy in c:\users\amogh g c\documents\voice_detection.venv\lib\site-packages (from speechbrain) (2.2.1)
    Requirement already satisfied: packaging in c:\users\amogh g c\documents\voice_detection.venv\lib\site-packages (from speechbrain) (24.2)
    Requirement already satisfied: scipy in c:\users\amogh g c\documents\voice_detection.venv\lib\site-packages (from speechbrain) (1.15.0)
    Collecting sentencepiece (from speechbrain) Using cached sentencepiece-0.2.0.tar.gz (2.6 MB) Preparing metadata (setup.py) ... error error: subprocess-exited-with-error

    × python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [51 lines of output] -- Building for: NMake Makefiles CMake Deprecation Warning at CMakeLists.txt:15 (cmake_minimum_required): Compatibility with CMake < 3.10 will be removed from a future version of CMake.

    Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
    to tell CMake that the project requires at least <min> but has been updated
    to work with policies introduced by <max> or earlier.


    -- VERSION: 0.2.0
    CMake Error at CMakeLists.txt:23 (project):
    Generator

    NMake Makefiles

    does not support platform specification, but platform

    x64

    was specified.


    CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
    CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
    -- Configuring incomplete, errors occurred!
    Traceback (most recent call last):
    File "<string>", line 2, in <module>
    exec(compile('''
    ~~~~^^^^^^^^^^^^
    # This is <pip-setuptools-caller> -- a caller that pip uses to run setup.py
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<31 lines>...
    exec(compile(setup_py_code, filename, "exec"))
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ''' % ('C:\\Users\\Amogh G C\\AppData\\Local\\Temp\\pip-install-_z6xb03h\\sentencepiece_d547716a6a0f4f0197f65d06be7c0ddd\\setup.py',), "<pip-setuptools-caller>", "exec"))
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "<pip-setuptools-caller>", line 34, in <module>
    File "C:\Users\...\AppData\Local\Temp\pip-install-_z6xb03h\sentencepiece_d547716a6a0f4f0197f65d06be7c0ddd\setup.py", line 128, in <module>
    subprocess.check_call([
    ~~~~~~~~~~~~~~~~~~~~~^^
    'cmake',
    ^^^^^^^^
    ...<6 lines>...
    '-DCMAKE_INSTALL_PREFIX=build\\root',
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ])
    ^^
    File "C:\Users\...\AppData\Local\Programs\Python\Python313\Lib\subprocess.py", line 419, in check_call
    raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command '['cmake', 'sentencepiece', '-A', 'x64', '-B', 'build', '-DSPM_ENABLE_SHARED=OFF', '-DCMAKE_INSTALL_PREFIX=build\\root']' returned non-zero exit status 1.
    [end of output]


    note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed

    × Encountered error while generating package metadata. ╰─> See above for output.

    note: This is an issue with the package mentioned above, not pip. hint: See above for details.

    This is the error i am getting can someone help me out to solve this issue.

    Continue reading...

Compartilhe esta Página