-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
installing python3 with vcpkg on windows 10 is failing with error "io.h" not found #7128
Comments
Building python3 using vcpkg, getting below console error. please help me to resolve this asap. note: using VS2019 preview . Building package python3[core]:x64-windows... Call Stack (most recent call first): Error: Building package python3:x64-windows failed with: BUILD_FAILED Additionally, attach any relevant sections from the log files above. |
no need to stamp complaints, you have problems with WinSDK solve this problem and everything else will turn out |
#7115 , this problem is coming on vs2017. But io.h file not found as problem not coming on vs2017. now, I have uninstalled everything e.g. vs2017 and installed vs2019 preview. in this case, error is coming in building python3. this error was not encounter for vs2017. so, i believe , both are different problem. |
C:\Program Files (x86)\ Windows Kits\10 \Include\10.0.17763.0\ucrt\io.h |
thanks voskrese. but not able to find that file with mentioned command , even if io.h file present in C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt |
@singh0506, please run '/vcpkg env --triplet x86-windows --debug' firstly, do you install windows sdk via vs installer? Everything works correctly for me. I have vs2019 16.2.0 preview, windows sdk 18362 and latest vcpkg installed. PS F:\vcpkg> ./vcpkg install python3 |
Thanks phoebeHui for your response, even i have vs2019 16.2.0 preview and SDK 18362 and latest vcpkg. and while running where $include:io.h , got below console log:c:\workspaceforvcpkg\vcpkg>where $include:io.h
|
@singh0506, I have checked the attached logs, it failed due to 'error C1083: Cannot open include file: 'io.h': No such file or directory', it looks windows sdk has something wrong here. Follow below steps and check if windows sdk related environment variable set correctly or what revision it does used here.
UCRTVersion=10.0.18362.0 |
thanks phoebehui for your response. after running set command, i am not able see above mentioned path correctly. I am attaching set.txt file , can you verify if all environment variables are correct or what need to be corrected. |
@singh0506, except missing windows sdk related environment variable, others looks fine, I recommend you to reinstall windows sdk 18362, please install it via VS installer, and check these variable again. |
@PhoebeHui , i have uninstall 18362 and reinstall through vs installer. but still did not find sdk related environment variable. please find attach after.txt file for environment variable. is there any way to set sdk related environment variable manually ? |
@singh0506 , how about And KitsRoot10 value under From your log, the variable be set, looks, the kitsRoot10 seems empty |
I am not able to open regedit since it is disabled . If kitsRoot10 is empty. then in this case, what need to be done ? |
@singh0506, in this case, I won't recommend, but as a work around, you can try to 'set __VCVARSALL_WINSDK=10.0.18362.0' in "C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\VC\Auxiliary\Build\vcvarsall.bat", and run it with arg 'x86' or 'x64' If it doesn't work, try to set the related variable in "C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\Common7\Tools\vsdevcmd\core\winsdk.bat" |
thanks @PhoebeHui , for helping me out to find solution. |
Great to hear that! |
No description provided.
The text was updated successfully, but these errors were encountered: