[Python] pyproject.toml related error while installing spacy library

Discussão em 'Python' iniciado por Stack, Abril 6, 2025.

  1. Stack

    Stack Membro Participativo

    I get the following error while installing the spacy library in Python 3.13.0. The pip version is 25.0.1. Can someone help? Thank you.

    (I made sure to install numpy, scipy, preshed,Pyrebase4 based on responses to similar questions, and upgraded setuptools.)

    Preparing metadata (pyproject.toml): started
    Preparing metadata (pyproject.toml): finished with status 'error'
    error: subprocess-exited-with-error

    Preparing metadata (pyproject.toml) did not run successfully.
    exit code: 1

    [21 lines of output]
    + C:\Users\xxx\AppData\Local\Programs\Python\Python313\python.exe C:\Users\xxx\AppData\Local\Temp\pip-install-53nq9zf7\numpy_789b6c3f53f44d9090d843a9d70df4b0\vendored-meson\meson\meson.py setup C:\Users\xxx\AppData\Local\Temp\pip-install-53nq9zf7\numpy_789b6c3f53f44d9090d843a9d70df4b0 C:\Users\xxx\AppData\Local\Temp\pip-install-53nq9zf7\numpy_789b6c3f53f44d9090d843a9d70df4b0\.mesonpy-h0rens75 -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=C:\Users\xxx\AppData\Local\Temp\pip-install-53nq9zf7\numpy_789b6c3f53f44d9090d843a9d70df4b0\.mesonpy-h0rens75\meson-python-native-file.ini
    The Meson build system
    Version: 1.4.99
    Source dir: C:\Users\xxx\AppData\Local\Temp\pip-install-53nq9zf7\numpy_789b6c3f53f44d9090d843a9d70df4b0
    Build dir: C:\Users\xxx\AppData\Local\Temp\pip-install-53nq9zf7\numpy_789b6c3f53f44d9090d843a9d70df4b0\.mesonpy-h0rens75
    Build type: native build
    Project name: NumPy
    Project version: 2.0.2
    WARNING: Failed to activate VS environment: Could not find C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe

    ..\meson.build:1:0: ERROR: Unknown compiler(s): [['icl'], ['cl'], ['cc'], ['gcc'], ['clang'], ['clang-cl'], ['pgcc']]
    The following exception(s) were encountered:
    Running `icl ""` gave "[WinError 2] The system cannot find the file specified"
    Running `cl /?` gave "[WinError 2] The system cannot find the file specified"
    Running `cc --version` gave "[WinError 2] The system cannot find the file specified"
    Running `gcc --version` gave "[WinError 2] The system cannot find the file specified"
    Running `clang --version` gave "[WinError 2] The system cannot find the file specified"
    Running `clang-cl /?` gave "[WinError 2] The system cannot find the file specified"
    Running `pgcc --version` gave "[WinError 2] The system cannot find the file specified"

    Continue reading...

Compartilhe esta Página