How to call Julia in Python

174 Views Asked by At

I am trying to call Julia within Python so that i can directly use some of the functions in julia to calculate things in python. However, when i try to call it, VScode told me there is no module named 'juliacall'. i have already type "pip install juliacall" in the terminal in VScode, and it looks fine. With "pip list", i did see juliacall is on the list, can anyone tell me what should i do? Also, in the same directory i have successfully set up the julia environment, just need to get python ready to call it in order to use some functions.

Need someone to help me step by step on how to make my python able to call julia in VScode. I have looked through the internet and i didn't understand about how to set about the path

1

There are 1 best solutions below

4
MingJie-MSFT On

This problem is usually caused by multiple Python interpreters in your environment and not selecting the correct Python interpreter which you installed the python package in.

You can use shortcuts Ctrl+Shift+P and type "Python: Select Interpreter" to choose the interpreter.

By the way, I suggest you creating virtual environment to manage python package.