# How to set the default python of the Mac terminal to slicerpython?

**URL:** <https://discourse.slicer.org/t/how-to-set-the-default-python-of-the-mac-terminal-to-slicerpython/19550>\
**Category:** Development\
**Tags:** python\
**Created:** [September 7, 2021, 4:40pm UTC](https://discourse.slicer.org/t/how-to-set-the-default-python-of-the-mac-terminal-to-slicerpython/19550 "2021-09-07T16:40:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jumbojing](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jumbojing/32/10811_2.png) [@jumbojing](https://discourse.slicer.org/u/jumbojing)\
**Post date:** [September 7, 2021, 4:40pm UTC](https://discourse.slicer.org/t/how-to-set-the-default-python-of-the-mac-terminal-to-slicerpython/19550/1 "2021-09-07T16:40:03Z")

</div>

How to set the default python of the Mac terminal to slicerpython?

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [September 7, 2021, 5:14pm UTC](https://discourse.slicer.org/t/how-to-set-the-default-python-of-the-mac-terminal-to-slicerpython/19550/2 "2021-09-07T17:14:25Z")

</div>

You can set the path in your shell (search for [things like this](https://stackoverflow.com/questions/11530090/adding-a-new-entry-to-the-path-variable-in-zsh)). The path would be to wherever you installed Slicer, e.g. ` /Applications/Slicer.app/Contents/bin`. Or you could make an alias so that whatever command you want is translated to ` /Applications/Slicer.app/Contents/bin/PythonSlicer`.

---

<div class="post-metadata">

**Author:** ![jumbojing](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jumbojing/32/10811_2.png) [@jumbojing](https://discourse.slicer.org/u/jumbojing)\
**Post date:** [September 7, 2021, 6:22pm UTC](https://discourse.slicer.org/t/how-to-set-the-default-python-of-the-mac-terminal-to-slicerpython/19550/3 "2021-09-07T18:22:01Z")

</div>

我试过了,可是这个python3.6不是开发版呀,可以升级到开发版吗?

- I tried it, but this python3.6 is not the development version, can I upgrade to the development version?

---

<div class="post-metadata">

**Author:** ![jumbojing](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jumbojing/32/10811_2.png) [@jumbojing](https://discourse.slicer.org/u/jumbojing)\
**Post date:** [September 7, 2021, 6:28pm UTC](https://discourse.slicer.org/t/how-to-set-the-default-python-of-the-mac-terminal-to-slicerpython/19550/4 "2021-09-07T18:28:03Z")

</div>

我在slicerjupyter上用cython时遇到了问题,谁有好的建议呢?谁有这方面的经验呀?

> I encountered a problem when using cython on slicerjupyter. Who has good suggestions? Who has experience in this area?

@lassoan@Juicy@jamesobutler @jcfr @pieper

---

<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:** [September 7, 2021, 9:58pm UTC](https://discourse.slicer.org/t/how-to-set-the-default-python-of-the-mac-terminal-to-slicerpython/19550/5 "2021-09-07T21:58:51Z")

</div>

Please give a detailed description of what you did, what you expected to happen, and what happened instead.
