Closed AbdelRahmanNasser20 closed 2 years ago
Not finding io.h is a first for me. I am not an expert with windows. Let's hope an other user can help you with this.
In the meantime, you could try installing using the bundle. pip install pyk4a-bundle
Strangely enough I get this same error right now when I had no installation problems in the past. I see two main differences between my current configuration and before: I upgraded Windows 10 to 11 and I'm using the Visual Studio C++ build tools 2022 instead of 2019. I see you are using the 2022 build tools @AbdelRahmanNasser20, are you on Win11 as well ?
@lpasselin I also tried the pip install pyk4a-bundle
and it worked flawlessly! But I don't understand the difference with the base module... could you elaborate a little bit? Are there any downsides compared to the normal install?
Also adding the C++ build tools as a prerequisite in the readme would be nice. The installation returns an error if they are missing, still it's easy to understand and fix (if you know what you need to do). This is not really related to the error described above but still fits the issue title so I don't see myself opening another one for that :)
yes I am also on win11 and just like you pip install pyk4a-bundle
worked flawlessly.
pyk4a-bundle is precompiled
When I try to pip install the py4ak lib using the following command:
pip install pyk4a --no-use-pep517 --global-option=build_ext --global-option="-IC:\Program Files\Azure Kinect SDK v1.4.1\sdk\include" --global-option="-LC:\Program Files\Azure Kinect SDK v1.4.1\sdk\windows-desktop\amd64\release\lib"
I get the following error:
I have the following path added
I have added the following path to my environment variables. C:\Program Files\Azure Kinect SDK v1.4.1\sdk\windows-desktop\amd64\release\bin
Image of C++ build tools that are installed
I am not at all sure how to deal with this:
c:\users\abdel nasser\desktop\python\python38\include\pyconfig.h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or directory error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.32.31326\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2 [end of output]
Any help will be greatly appreciated.