[Python] Cannot install spaCy on Windows 11

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

  1. Stack

    Stack Membro Participativo

    I am trying to install spaCy on Windows 11, but I am getting these two error messages. I am using python 3.9.

    I have followed the steps to install spaCy on the spaCy website:

    python -m venv .env

    .env\Scripts\activate

    pip install -U pip setuptools wheel

    pip install -U spacy (I get the errors at this step)

    python -m spacy download en_core_web_sm

    python -m spacy download es_core_news_sm

    Thank you so much for your help.

    First error message:

    Building wheels for collected packages: blis Building wheel for blis (pyproject.toml) ... error error: subprocess-exited-with-error

    × Building wheel for blis (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [36 lines of output] BLIS_COMPILER? None C:\Users\iedua\AppData\Local\Temp\pip-build-env-obpxcxf_\overlay\Lib\site-packages\setuptools\dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated. !!

    ********************************************************************************
    Please consider removing the following classifiers in favor of a SPDX license expression:

    License :: OSI Approved :: BSD License

    See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
    ********************************************************************************

    !!
    self._finalize_license_expression()
    running bdist_wheel
    running build
    running build_py
    creating build\lib.win-amd64-cpython-39\blis
    copying blis\about.py -> build\lib.win-amd64-cpython-39\blis
    copying blis\benchmark.py -> build\lib.win-amd64-cpython-39\blis
    copying blis\__init__.py -> build\lib.win-amd64-cpython-39\blis
    creating build\lib.win-amd64-cpython-39\blis\tests
    copying blis\tests\common.py -> build\lib.win-amd64-cpython-39\blis\tests
    copying blis\tests\test_dotv.py -> build\lib.win-amd64-cpython-39\blis\tests
    copying blis\tests\test_gemm.py -> build\lib.win-amd64-cpython-39\blis\tests
    copying blis\tests\__init__.py -> build\lib.win-amd64-cpython-39\blis\tests
    copying blis\cy.pyx -> build\lib.win-amd64-cpython-39\blis
    copying blis\py.pyx -> build\lib.win-amd64-cpython-39\blis
    copying blis\cy.pxd -> build\lib.win-amd64-cpython-39\blis
    copying blis\__init__.pxd -> build\lib.win-amd64-cpython-39\blis
    running build_ext
    Build options win32 msvc
    BUILD ARCH: x86_64


    There are more output here, but I have omitted it.

    Second error message:

    [COMMAND] C:\Program Files\LLVM\bin\clang.exe -c C:\Users\iedua\AppData\Local\Temp\pip-install-u6kxeovr\blis_fe2e17ebe3744da2a14e59250b0ef61c\blis_src\config\bulldozer\bli_cntx_init_bulldozer.c -o C:\Users\iedua\AppData\Local\Temp\tmp4w3zrpbz\bli_cntx_init_bulldozer.o -O3 -std=c99 -D_POSIX_C_SOURCE=200112L -DBLIS_VERSION_STRING="0.7.0" -DBLIS_IS_BUILDING_LIBRARY -Iinclude\windows-x86_64 -I.\frame\3\ -I.\frame\ind\ukernels\ -I.\frame\3\ -I.\frame\1m\ -I.\frame\1f\ -I.\frame\1\ -I.\frame\include -IC:\Users\iedua\AppData\Local\Temp\pip-install-u6kxeovr\blis_fe2e17ebe3744da2a14e59250b0ef61c\blis_src\include\windows-x86_64 error: [WinError 2] The system cannot find the file specified [end of output]

    note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for blis Failed to build blis ERROR: Failed to build installable wheels for some pyproject.toml based projects (blis) There are more output, but I have not pasted it.

    Continue reading...

Compartilhe esta Página