# Run multiple python instances with pycall in different threads

**URL:** <https://discourse.julialang.org/t/run-multiple-python-instances-with-pycall-in-different-threads/78399>\
**Category:** General Usage\
**Tags:** pycall, parallel\
**Created:** [March 24, 2022, 2:38pm UTC](https://discourse.julialang.org/t/run-multiple-python-instances-with-pycall-in-different-threads/78399 "2022-03-24T14:38:41Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![hhaensel](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/hhaensel/32/1207_2.png) [@hhaensel](https://discourse.julialang.org/u/hhaensel)\
**Post date:** [June 13, 2024, 7:06am UTC](https://discourse.julialang.org/t/run-multiple-python-instances-with-pycall-in-different-threads/78399/8 "2024-06-13T07:06:11Z")

</div>

It seems that Python can’t be made running in different threads, but there’s a workaround to pin python routines to a fixed thread just in case your application (e.g. a multi-user web application like GenieFramwork), will use multi-threading to handle different user requests.  
I posted a solution in a [related thread](https://discourse.julialang.org/t/julia-crashed-when-using-pycall-in-multiple-threads/111004/9)

---

_[View the full topic](https://discourse.julialang.org/t/run-multiple-python-instances-with-pycall-in-different-threads/78399)._
