Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip subprocess to install build dependencies did not run successfully. #475

Open
ghost opened this issue Jun 21, 2024 · 2 comments
Open

Comments

@ghost
Copy link

ghost commented Jun 21, 2024

error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> [96 lines of output]
Ignoring numpy: markers 'python_version < "3.9"' don't match your environment
Collecting setuptools
Using cached setuptools-70.1.0-py3-none-any.whl.metadata (6.0 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.8-cp39-cp39-win32.whl
Collecting preshed<3.1.0,>=3.0.2
Using cached preshed-3.0.9-cp39-cp39-win32.whl
Collecting murmurhash<1.1.0,>=0.28.0
Using cached murmurhash-1.0.10-cp39-cp39-win32.whl
Collecting thinc<8.3.0,>=8.2.2
Using cached thinc-8.2.5.tar.gz (193 kB)
Installing build dependencies: started
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

    [64 lines of output]
    Ignoring numpy: markers 'python_version < "3.9"' don't match your environment
    Collecting setuptools
      Using cached setuptools-70.1.0-py3-none-any.whl.metadata (6.0 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.10-cp39-cp39-win32.whl
    Collecting cymem<2.1.0,>=2.0.2
      Using cached cymem-2.0.8-cp39-cp39-win32.whl
    Collecting preshed<3.1.0,>=3.0.2
      Using cached preshed-3.0.9-cp39-cp39-win32.whl
    Collecting blis<0.8.0,>=0.7.8
      Using cached blis-0.7.11.tar.gz (2.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'
      Preparing metadata (pyproject.toml): started
      Preparing metadata (pyproject.toml): finished with status 'done'
    Collecting numpy<2.0.0,>=1.25.0
      Using cached numpy-1.26.4-cp39-cp39-win32.whl.metadata (61 kB)
    Using cached setuptools-70.1.0-py3-none-any.whl (882 kB)
    Using cached Cython-0.29.37-py2.py3-none-any.whl (989 kB)
    Using cached numpy-1.26.4-cp39-cp39-win32.whl (6.0 MB)
    Building wheels for collected packages: blis
      Building wheel for blis (pyproject.toml): started
      Building wheel for blis (pyproject.toml): finished with status 'error'
      error: subprocess-exited-with-error

      Building wheel for blis (pyproject.toml) did not run successfully.
      exit code: 1

      [25 lines of output]
      BLIS_COMPILER? None
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build\lib.win32-cpython-39
      creating build\lib.win32-cpython-39\blis
      copying blis\about.py -> build\lib.win32-cpython-39\blis
      copying blis\benchmark.py -> build\lib.win32-cpython-39\blis
      copying blis\__init__.py -> build\lib.win32-cpython-39\blis
      creating build\lib.win32-cpython-39\blis\tests
      copying blis\tests\common.py -> build\lib.win32-cpython-39\blis\tests
      copying blis\tests\test_dotv.py -> build\lib.win32-cpython-39\blis\tests
      copying blis\tests\test_gemm.py -> build\lib.win32-cpython-39\blis\tests
      copying blis\tests\__init__.py -> build\lib.win32-cpython-39\blis\tests
      copying blis\cy.pyx -> build\lib.win32-cpython-39\blis
      copying blis\py.pyx -> build\lib.win32-cpython-39\blis
      copying blis\cy.pxd -> build\lib.win32-cpython-39\blis
      copying blis\__init__.pxd -> build\lib.win32-cpython-39\blis
      running build_ext
      Build options win32 msvc
      BUILD ARCH: x86_64
      {'7ZIP':  
      
      *RANDOMFILEPATHS*
      
                error: [WinError 2] Systém nemůže nalézt uvedený soubor
      [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: ERROR: Failed to build installable wheels for some pyproject.toml based projects (blis)
    [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.
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.

@liyuxia713
Copy link

i met the same problem, frustrating

@Darkwing371
Copy link

Lot of people seem to have this error (#476), I also did encounter it today.

You need to have Python 3.9 installed on your system: https://www.python.org/downloads/release/python-390/, probably the 64 bit version, called "Windows x86-64 executable installer".

You can have it running alongside other versions, like 3.12, already present on your system.

In the CMD window, navigate to your directory, where you just installed the version 3.9 and use the "python" command there. This way you are using the 3.9 version of python.exe

Upgrade pip to the latest version: python -m pip install --upgrade pip

Additionally, it is probably a good idea to have the latest version of the Visual Studio Build Tools installed. Scroll down, there you'll find "https://aka.ms/vs/17/release/vs_BuildTools.exe".

After all this, you should follow the install process described on the project page. It should build now and find/resolve all dependencies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants