[Feature]: Select Julia version at first import. #576
-
Feature RequestIt would be better if user can choose correct julia version during first time import. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
It only downloads Julia if it can't already find it on your system. You can provide the location as follows (see JuliaCall docs here: https://juliapy.github.io/PythonCall.jl/stable/juliacall/#julia-config) import os
os.environ["PYTHON_JULIACALL_BINDIR"] = "/path/to/julia/binary/folder"
from pysr import PySRRegressor or by starting Python like this: python -X juliacall-home='/path/to/julia/binary/folder' script.py Just note that it will still re-download Julia if you have an incompatible version. Right now PySR skips Julia 1.10.1 and 1.10.2 due to a bug in libgomp. So if you had one of those versions, you would need to downgrade to 1.10.0 to avoid redownloading. |
Beta Was this translation helpful? Give feedback.
-
Also, if possible, please submit a bug report to PythonCall.jl: https://github.com/JuliaPy/PythonCall.jl describing your setup. Because it should have downloaded the aarch64 version rather than the x64 one; that seems like a bug. |
Beta Was this translation helpful? Give feedback.
It only downloads Julia if it can't already find it on your system. You can provide the location as follows (see JuliaCall docs here: https://juliapy.github.io/PythonCall.jl/stable/juliacall/#julia-config)
or by starting Python like this:
python -X juliacall-home='/path/to/julia/binary/folder' script.py
Just note that it will still re-download Julia if you have an incompatible version. Right now PySR skips Julia 1.10.1 and 1.10.2 due to a bug in libgomp. So if you had one of those versions, you would need to downgrade to 1.10.0 to avoid redownloading.