# Python 3 support

**URL:** https://discourse.kitware.com/t/python-3-support/141
**Category:** Software Process
**Created:** [August 15, 2018, 8:48pm UTC](https://discourse.kitware.com/t/python-3-support/141 "2018-08-15T20:48:14Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![tj.corona](https://discourse.kitware.com/user_avatar/discourse.kitware.com/tj.corona/32/35_2.png) [@tj.corona](https://discourse.kitware.com/u/tj.corona)
#### Post date: [August 15, 2018, 8:48pm UTC](https://discourse.kitware.com/t/python-3-support/141/1 "2018-08-15T20:48:14Z")

</div>

I have just bumped SMTK, CMB and the CMB superbuild (so you will likely need to update your builds locally before you can build SMTK or CMB from the master branch). The reason for all of the updates is that we can now build CMB with python 3 support! Currently, our superbuild does not support building python 3 from source, so you will have to use a system python 3. I will be adding a buildbot configuration for Moho to test this new functionality.

---

<div class="post-metadata">

### Author: ![Haocheng\_Liu](https://discourse.kitware.com/user_avatar/discourse.kitware.com/haocheng_liu/32/36_2.png) [@Haocheng\_Liu](https://discourse.kitware.com/u/Haocheng_Liu)
#### Post date: [August 16, 2018, 12:50pm UTC](https://discourse.kitware.com/t/python-3-support/141/2 "2018-08-16T12:50:12Z")

</div>

Are we dropping support for python2 to be python3 only? (Awesome for that change!)

---

<div class="post-metadata">

### Author: ![tj.corona](https://discourse.kitware.com/user_avatar/discourse.kitware.com/tj.corona/32/35_2.png) [@tj.corona](https://discourse.kitware.com/u/tj.corona)
#### Post date: [August 16, 2018, 12:51pm UTC](https://discourse.kitware.com/t/python-3-support/141/3 "2018-08-16T12:51:50Z")

</div>

No, I don’t think we can drop python 2 support as long as we interface with python 2-only projects (like Capstone). Currently, our python tests are dual-purpose for both python 2 and 3. We will see how difficult that is to maintain!

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.kitware.com/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.kitware.com/u/ben.boeckel)
#### Post date: [September 14, 2018, 9:05pm UTC](https://discourse.kitware.com/t/python-3-support/141/4 "2018-09-14T21:05:26Z")

</div>

Note that Shawn has Python3 building in the tomviz superbuild. Porting it over would be good. It would also mean that all Python packages can be installed via `pip`.

---

<div class="post-metadata">

### Author: ![tj.corona](https://discourse.kitware.com/user_avatar/discourse.kitware.com/tj.corona/32/35_2.png) [@tj.corona](https://discourse.kitware.com/u/tj.corona)
#### Post date: [September 14, 2018, 9:30pm UTC](https://discourse.kitware.com/t/python-3-support/141/5 "2018-09-14T21:30:25Z")

</div>

+1
