# Use Julia with Slicer

**URL:** <https://discourse.slicer.org/t/use-julia-with-slicer/16765>\
**Category:** Support\
**Created:** [March 25, 2021, 7:27pm UTC](https://discourse.slicer.org/t/use-julia-with-slicer/16765 "2021-03-25T19:27:35Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![keri](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/keri/32/11618_2.png) [@keri](https://discourse.slicer.org/u/keri)\
**Post date:** [July 11, 2022, 8:22pm UTC](https://discourse.slicer.org/t/use-julia-with-slicer/16765/6 "2022-07-11T20:22:08Z")

</div>

> [@\`sys.executable\` is different when running from Slicer and from PythonSlicer](https://discourse.slicer.org/t/sys-executable-is-different-when-running-from-slicer-and-from-pythonslicer/24260/5):
>
> In the case of the Slicer application, you should instead considering using the [Application Startup File](https://slicer.readthedocs.io/en/latest/user_guide/settings.html#application-startup-file)

Didn’t know about this file, thank you.

> [@\`sys.executable\` is different when running from Slicer and from PythonSlicer](https://discourse.slicer.org/t/sys-executable-is-different-when-running-from-slicer-and-from-pythonslicer/24260/5):
>
> To provide a more targeted answer, could you provide more details ? What are you trying to achieve ?

It seems this is not an issue anymore but here is why started this topic:

I bundle julia programming language along with SlicerCAT and I wasn’t able to build a package ([pyjulia](https://github.com/JuliaPy/pyjulia)) because its dependency ([PyCall](https://github.com/JuliaPy/PyCall.jl)) used to be built against `python.exe` while pyjulia determined that it is invoked from `PythonSlicer.exe` (pyjulia used to raise an exception about this).

But as I figured out later the problem was within Slicer build tree python library is copied to `Slicer-build` and the inconsistency was invoked by that: PyCall links to `python-install/bin/python39.dll` and pyjulia links to `Slicer-build/bin/python39.dll`.

This is not an issue when SlicerCAT is installed (tested).

---

_[View the full topic](https://discourse.slicer.org/t/use-julia-with-slicer/16765)._
