PythonCall is a Julia package that allows us to call Python in Julia. This gist explains how to let PythonCall reuse a local Python environment we have configured. The benefit is that PythonCall itself will not download Python nor Python packages (which can be slow and erroeneous): we have prepared them in our environment ahead.
- Create a Conda, Mamba or MicroMamba environment with the Python version you want. Suppose its name is "myenv".
- Install required Python packages into the above envrionment such as pandas, pyplot, etc.
Simply add PythonCall in your Julia environment