Skip to content

[Feature]: Select Julia version at first import. #576

Answered by MilesCranmer
JacobZhao asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by JacobZhao
Comment options

You must be logged in to vote
1 reply
@JacobZhao
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
PySR PySR-related discussion
2 participants
Converted from issue

This discussion was converted from issue #575 on March 21, 2024 04:16.