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

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

Open
vtasStu opened this issue Apr 10, 2023 · 3 comments

Comments

@vtasStu
Copy link

vtasStu commented Apr 10, 2023

Hello, I get this error when install pyk4a by pip

pip install pyk4a -i https://pypi.org/simple

Error

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

My env:

  • windows 10
  • anaconda virtual env python=3.9

More details

Collecting pyk4a
  Using cached pyk4a-1.5.0.tar.gz (24 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: numpy in c:\users\ymy\anaconda3\envs\cugpose\lib\site-packages (from pyk4a) (1.24.2)
Building wheels for collected packages: pyk4a
  Building wheel for pyk4a (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for pyk4a (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [25 lines of output]
      C:\Users\ymy\AppData\Local\Temp\pip-build-env-n_guzr1s\overlay\Lib\site-packages\setuptools\dist.py:788: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
        warnings.warn(
      Automatically detected kinect SDK. Adding include dir: C:\Program Files\Azure Kinect SDK v1.4.1\sdk\include and library dir C:\Program Files\Azure Kinect SDK v1.4.1\sdk\windows-desktop\AMD64\release\lib.
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-cpython-39
      creating build\lib.win-amd64-cpython-39\pyk4a
      copying pyk4a\calibration.py -> build\lib.win-amd64-cpython-39\pyk4a
      copying pyk4a\capture.py -> build\lib.win-amd64-cpython-39\pyk4a
      copying pyk4a\config.py -> build\lib.win-amd64-cpython-39\pyk4a
      copying pyk4a\errors.py -> build\lib.win-amd64-cpython-39\pyk4a
      copying pyk4a\module.py -> build\lib.win-amd64-cpython-39\pyk4a
      copying pyk4a\playback.py -> build\lib.win-amd64-cpython-39\pyk4a
      copying pyk4a\pyk4a.py -> build\lib.win-amd64-cpython-39\pyk4a
      copying pyk4a\record.py -> build\lib.win-amd64-cpython-39\pyk4a
      copying pyk4a\results.py -> build\lib.win-amd64-cpython-39\pyk4a
      copying pyk4a\transformation.py -> build\lib.win-amd64-cpython-39\pyk4a
      copying pyk4a\win32_utils.py -> build\lib.win-amd64-cpython-39\pyk4a
      copying pyk4a\__init__.py -> build\lib.win-amd64-cpython-39\pyk4a
      copying pyk4a\py.typed -> build\lib.win-amd64-cpython-39\pyk4a
      running build_ext
      building 'k4a_module' extension
      error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for pyk4a
Failed to build pyk4a
ERROR: Could not build wheels for pyk4a, which is required to install pyproject.toml-based projects
@vanmil
Copy link

vanmil commented Apr 13, 2023

Having the same issue (already tried installing the correct Microsoft Visual C++ 14.0 modules with "Microsoft C++ Build Tools"

@lpasselin
Copy link
Collaborator

lpasselin commented Apr 13, 2023

Can you confirm that you have selected to install the C++ compiler? There is probably a way to validate which features are currently installed.

https://www.scivision.dev/python-windows-visual-c-14-required

@Xujc124
Copy link

Xujc124 commented May 4, 2023

It may be because you have not installed Microsoft C++ Compiling Tool.

https://visualstudio.microsoft.com/zh-hans/visual-cpp-build-tools/

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

4 participants