# Build error due to Python.h file cannot be opened 

**URL:** <https://discourse.slicer.org/t/build-error-due-to-python-h-file-cannot-be-opened/26663>\
**Category:** Development\
**Created:** [December 9, 2022, 1:03pm UTC](https://discourse.slicer.org/t/build-error-due-to-python-h-file-cannot-be-opened/26663 "2022-12-09T13:03:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![2939004821](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/2939004821/32/17630_2.png) [@2939004821](https://discourse.slicer.org/u/2939004821)\
**Post date:** [December 9, 2022, 1:03pm UTC](https://discourse.slicer.org/t/build-error-due-to-python-h-file-cannot-be-opened/26663/1 "2022-12-09T13:03:25Z")

</div>

I get an error when compiling Slicer. The error is that the \<Python.h\> file cannot be opened and the compilation fails. How to solve this problem.

在我对Slicer进行编译时报错。错误是无法打开\<Python.h\>文件导致编译失败，应该如何解决这个问题。

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [December 10, 2022, 4:39am UTC](https://discourse.slicer.org/t/build-error-due-to-python-h-file-cannot-be-opened/26663/2 "2022-12-10T04:39:18Z")

</div>

This section of the documentation may be useful: [Windows — 3D Slicer documentation](https://slicer.readthedocs.io/en/latest/developer_guide/build_instructions/windows.html#errors-related-to-python)
