[Python] I running my python notebook in VScodes and Im trying to install Spacy but it is...

Discussão em 'Python' iniciado por Stack, Março 20, 2025.

  1. Stack

    Stack Membro Participativo

    Im using VScodes to run my notebook. I have created an environment for this particular folder and tries installing spacy in it, how can I address this issue to ensure that its installing properly.

    Note: Im using python 3.13.2 and I have installed C++ compiler in my VScodes and still the issue persists. If the issue is still with the C++ compiler can someone advice on how to install the compiler properly.

    This is the line of code I ran:

    pip install spacy



    And its showing this error

    Collecting spacy
    Using cached spacy-3.8.2.tar.gz (1.3 MB)
    Installing build dependencies ... error
    error: subprocess-exited-with-error

    × pip subprocess to install build dependencies did not run successfully.
    │ exit code: 1
    ╰─> [106 lines of output]
    Ignoring numpy: markers 'python_version < "3.9"' don't match your environment
    Collecting setuptools
    Using cached setuptools-76.1.0-py3-none-any.whl.metadata (6.7 kB)
    Collecting cython<3.0,>=0.25
    Using cached Cython-0.29.37-py2.py3-none-any.whl.metadata (3.1 kB)
    Collecting cymem<2.1.0,>=2.0.2
    Using cached cymem-2.0.11-cp313-cp313-win_amd64.whl.metadata (8.8 kB)
    Collecting preshed<3.1.0,>=3.0.2
    Using cached preshed-3.0.9.tar.gz (14 kB)
    Installing build dependencies: started
    Installing build dependencies: finished with status 'done'
    Getting requirements to build wheel: started
    Getting requirements to build wheel: finished with status 'done'
    Preparing metadata (pyproject.toml): started
    Preparing metadata (pyproject.toml): finished with status 'done'
    Collecting murmurhash<1.1.0,>=0.28.0
    Using cached murmurhash-1.0.12-cp313-cp313-win_amd64.whl.metadata (2.2 kB)
    Collecting thinc<8.4.0,>=8.3.0
    Using cached thinc-8.3.2.tar.gz (193 kB)
    Installing build dependencies: started
    Installing build dependencies: still running...
    Installing build dependencies: finished with status 'error'
    error: subprocess-exited-with-error

    pip subprocess to install build dependencies did not run successfully.
    exit code: 1

    [67 lines of output]
    Ignoring numpy: markers 'python_version < "3.9"' don't match your environment
    Collecting setuptools
    Using cached setuptools-76.1.0-py3-none-any.whl.metadata (6.7 kB)
    Collecting cython<3.0,>=0.25
    Using cached Cython-0.29.37-py2.py3-none-any.whl.metadata (3.1 kB)
    Collecting murmurhash<1.1.0,>=1.0.2
    Using cached murmurhash-1.0.12-cp313-cp313-win_amd64.whl.metadata (2.2 kB)
    Collecting cymem<2.1.0,>=2.0.2
    Using cached cymem-2.0.11-cp313-cp313-win_amd64.whl.metadata (8.8 kB)
    Collecting preshed<3.1.0,>=3.0.2
    Using cached preshed-3.0.9.tar.gz (14 kB)
    Installing build dependencies: started
    Installing build dependencies: finished with status 'done'
    Getting requirements to build wheel: started
    Getting requirements to build wheel: finished with status 'done'
    Preparing metadata (pyproject.toml): started
    Preparing metadata (pyproject.toml): finished with status 'done'
    Collecting blis<1.1.0,>=1.0.0
    Using cached blis-1.0.2-cp313-cp313-win_amd64.whl.metadata (7.8 kB)
    Collecting numpy<2.1.0,>=2.0.0
    Using cached numpy-2.0.2.tar.gz (18.9 MB)
    Installing build dependencies: started
    Installing build dependencies: finished with status 'done'
    Getting requirements to build wheel: started
    Getting requirements to build wheel: finished with status 'done'
    Installing backend dependencies: started
    Installing backend dependencies: finished with status 'done'
    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\\Documents\Loyalty\myenv\Scripts\python.exe C:\Users\\AppData\Local\Temp\1\pip-install-5x3d1x7s\numpy_94be5fe667af4ea2852e5db3653c8f9d\vendored-meson\meson\meson.py setup C:\Users\\AppData\Local\Temp\1\pip-install-5x3d1x7s\numpy_94be5fe667af4ea2852e5db3653c8f9d C:\Users\\AppData\Local\Temp\1\pip-install-5x3d1x7s\numpy_94be5fe667af4ea2852e5db3653c8f9d\.mesonpy-b544mmyg -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=C:\Users\\AppData\Local\Temp\1\pip-install-5x3d1x7s\numpy_94be5fe667af4ea2852e5db3653c8f9d\.mesonpy-b544mmyg\meson-python-native-file.ini
    The Meson build system
    Version: 1.4.99
    Source dir: C:\Users\\AppData\Local\Temp\1\pip-install-5x3d1x7s\numpy_94be5fe667af4ea2852e5db3653c8f9d
    Build dir: C:\Users\\AppData\Local\Temp\1\pip-install-5x3d1x7s\numpy_94be5fe667af4ea2852e5db3653c8f9d\.mesonpy-b544mmyg
    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"

    A full log can be found at C:\Users\\AppData\Local\Temp\1\pip-install-5x3d1x7s\numpy_94be5fe667af4ea2852e5db3653c8f9d\.mesonpy-b544mmyg\meson-logs\meson-log.txt
    [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.
    [end of output]

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

    pip subprocess to install build dependencies did not run successfully.
    exit code: 1

    See above for output.

    note: This error originates from a subprocess, and is likely not a problem with pip.
    [end of output]

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

    [notice] A new release of pip is available: 24.3.1 -> 25.0.1
    [notice] To update, run: python.exe -m pip install --upgrade pip
    error: subprocess-exited-with-error

    × pip subprocess to install build dependencies did not run successfully.
    │ exit code: 1
    ╰─> See above for output.

    Continue reading...

Compartilhe esta Página