[{"data":1,"prerenderedAt":76},["ShallowReactive",2],{"/2026/01/18-cython-compile-error-on-python-3.12-on-windows-10":3},{"id":4,"title":5,"body":6,"date":67,"description":44,"extension":68,"meta":69,"navigation":70,"path":71,"robots":72,"seo":73,"stem":74,"__hash__":75},"posts/2026/01/18 Cython-compile-error-on-Python-3.12-on-Windows-10.md","18 Cython Compile Error On Python 312 On Windows 10",{"type":7,"value":8,"toc":64},"minimark",[9,18,25,28,31,45,48,50,53,61],[10,11,13],"post-title",{":date":12},"date",[14,15,17],"h1",{"id":16},"cython-compile-error-on-python-312-on-windows-10","Cython Compile Error on Python 3.12 on Windows 10",[19,20,21],"notes",{},[22,23,24],"p",{},"This is a repost from my old blog. First posted in 8/22/2024.",[26,27],"br",{},[22,29,30],{},"I have Python 3.12 installed on my Windows 10 machine. I tried to install a package using Pip. Apparently, the package contains Cython and needs to be compiled. However, the compilation failed with the following message:",[32,33,34],"code-block",{},[35,36,41],"pre",{"className":37,"code":39,"language":40},[38],"language-text","Cannot open include file: 'io.h': No such file or directory\n","text",[42,43,39],"code",{"__ignoreMap":44},"",[22,46,47],{},"Ok, not a problem, I just go to Visual Studio Installer and install Desktop development with C++ package.",[26,49],{},[22,51,52],{},"That fixed the first issue. But installing the package still failed. This time the error message is:",[32,54,55],{},[35,56,59],{"className":57,"code":58,"language":40},[38],"'C:\\\\Program Files\\\\Microsoft Visual Studio\\\\2022\\\\Community\\\\VC\\\\Tools\\\\MSVC\\\\14.41.34120\\\\bin\\\\HostX86\\\\x64\\\\cl.exe' failed with exit code 2\n",[42,60,58],{"__ignoreMap":44},[22,62,63],{},"To fix the above, I had to downgrade python to 3.10 and the package is installed properly.",{"title":44,"searchDepth":65,"depth":65,"links":66},2,[],"2026-01-18T00:00:00.000Z","md",{},true,"/2026/01/18-cython-compile-error-on-python-3.12-on-windows-10",null,{"title":5,"description":44},"2026/01/18 Cython-compile-error-on-Python-3.12-on-Windows-10","p2Iu8R5W3YKtR_Z_EhanBgXGQ97GDEQbdCat_iFOGog",1785167451778]