'ERROR: Could not build wheels for hyperscan, which is required to install pyproject.toml-based projects

Error while installing hyperscan on windows. Tried updated PIP and installed wheel but still no luck.

ERROR: Could not build wheels for hyperscan, which is required to install pyproject.toml-based projects.

Collecting hyperscan   Using cached hyperscan-0.3.0.tar.gz (15 kB)   Installing build dependencies: started   Installing build dependencies: still running...   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' Building wheels for collected packages: hyperscan   Building wheel for hyperscan (pyproject.toml): started   Building wheel for hyperscan (pyproject.toml): finished with status 'error' Failed to build hyperscan

  error: subprocess-exited-with-error
     Building wheel for hyperscan (pyproject.toml) did not run successfully.   exit code: 1
     [37 lines of output]   A setup.py file already exists. Using it.   Traceback (most recent call last):
    File "C:\Users\Durgaprasad\AppData\Local\Temp\pip-install-m8cgp80l\hyperscan_8c18e1d3ff2a43afab5770371852e25e\setup.py", line 29, in <module>
      build(setup_kwargs)
    File "C:\Users\Durgaprasad\AppData\Local\Temp\pip-install-m8cgp80l\hyperscan_8c18e1d3ff2a43afab5770371852e25e\build.py", line 75, in build
      **pkgconfig(["libhs", "libch"], static=True),
    File "C:\Users\Durgaprasad\AppData\Local\Temp\pip-install-m8cgp80l\hyperscan_8c18e1d3ff2a43afab5770371852e25e\build.py", line 30, in pkgconfig
      subprocess.check_output(
    File "C:\Users\Durgaprasad\AppData\Local\Programs\Python\Python38\lib\subprocess.py", line 415, in check_output
      return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
    File "C:\Users\Durgaprasad\AppData\Local\Programs\Python\Python38\lib\subprocess.py", line 493, in run
      with Popen(*popenargs, **kwargs) as process:
    File "C:\Users\Durgaprasad\AppData\Local\Programs\Python\Python38\lib\subprocess.py", line 858, in __init__
      self._execute_child(args, executable, preexec_fn, close_fds,
    File "C:\Users\Durgaprasad\AppData\Local\Programs\Python\Python38\lib\subprocess.py", line 1311, in _execute_child
      hp, ht, pid, tid = _winapi.CreateProcess(executable, args,   FileNotFoundError: [WinError 2] The system cannot find the file specified   Traceback (most recent call last):
    File "C:\Users\Durgaprasad\PycharmProjects\pythonProject\venv\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 363, in <module>
      main()
    File "C:\Users\Durgaprasad\PycharmProjects\pythonProject\venv\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 345, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "C:\Users\Durgaprasad\PycharmProjects\pythonProject\venv\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 261, in build_wheel
      return _build_backend().build_wheel(wheel_directory, config_settings,
    File "C:\Users\Durgaprasad\AppData\Local\Temp\pip-build-env-71wvp_op\overlay\Lib\site-packages\poetry\core\masonry\api.py", line 68, in build_wheel
      return unicode(WheelBuilder.make_in(poetry, Path(wheel_directory)))
    File "C:\Users\Durgaprasad\AppData\Local\Temp\pip-build-env-71wvp_op\overlay\Lib\site-packages\poetry\core\masonry\builders\wheel.py", line 78, in make_in
      wb.build()
    File "C:\Users\Durgaprasad\AppData\Local\Temp\pip-build-env-71wvp_op\overlay\Lib\site-packages\poetry\core\masonry\builders\wheel.py", line 110, in build
      self._build(zip_file)
    File "C:\Users\Durgaprasad\AppData\Local\Temp\pip-build-env-71wvp_op\overlay\Lib\site-packages\poetry\core\masonry\builders\wheel.py", line 162, in _build
      self._run_build_command(setup)
    File "C:\Users\Durgaprasad\AppData\Local\Temp\pip-build-env-71wvp_op\overlay\Lib\site-packages\poetry\core\masonry\builders\wheel.py", line 190, in _run_build_command
      subprocess.check_call(
    File "C:\Users\Durgaprasad\AppData\Local\Programs\Python\Python38\lib\subprocess.py", line 364, in check_call
      raise CalledProcessError(retcode, cmd)   subprocess.CalledProcessError: Command '['C:/Users/Durgaprasad/PycharmProjects/pythonProject/venv/Scripts/python.exe', 'C:\\Users\\Durgaprasad\\AppData\\Local\\Temp\\pip-install-m8cgp80l\\hyperscan_8c18e1d3ff2a43afab5770371852e25e\\setup.py', 'build', '-b', 'C:\\Users\\Durgaprasad\\AppData\\Local\\Temp\\pip-install-m8cgp80l\\hyperscan_8c18e1d3ff2a43afab5770371852e25e\\build']' 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: Failed building wheel for hyperscan ERROR: Could not build wheels for hyperscan, which is required to install pyproject.toml-based projects



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source