# Updating slicer to work with python 3

**URL:** https://discourse.slicer.org/t/updating-slicer-to-work-with-python-3/4662
**Category:** Development
**Tags:** build
**Created:** [November 6, 2018, 7:31pm UTC](https://discourse.slicer.org/t/updating-slicer-to-work-with-python-3/4662 "2018-11-06T19:31:37Z")
**Posts on this page:** 1
**Showing post:** 14

<div class="post-metadata">

### Author: ![jcfr](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jcfr/32/17825_2.png) [@jcfr](https://discourse.slicer.org/u/jcfr)
#### Post date: [April 12, 2019, 4:47pm UTC](https://discourse.slicer.org/t/updating-slicer-to-work-with-python-3/4662/14 "2019-04-12T16:47:39Z")

</div>

> After fixing Python’s [Modules\_io\_iomodule.c](https://github.com/Slicer/Slicer/pull/1118#issuecomment-482436689), Windows build succeeded in both release and debug mode.

Thanks for looking into this. I will update [GitHub - python-cmake-buildsystem/python-cmake-buildsystem: A cmake buildsystem for compiling Python](https://github.com/python-cmake-buildsystem/python-cmake-buildsystem) to integrate this.

> In debug mode, Slicer hangs at startup. See a fix here: [https://github.com/lassoan/Slicer/tree/python-startup-hang-in-debug-mode](https://github.com/lassoan/Slicer/tree/python-startup-hang-in-debug-mode). @jcfr could you please review and merge?

Thanks for the patch. I will review and integrate shortly.

---

_[View the full topic](https://discourse.slicer.org/t/updating-slicer-to-work-with-python-3/4662)._
