@Maria_Pintos One option is to try the new PythonCall.jl version of PySR which automatically installs julia and all the dependencies.
It’s not released yet but you install the current version with:
pip install -U git+https://github.com/MilesCranmer/PySR.git@06aebb6b587f8c811723710f8193a5086778b3ad
then just
import pysr
will automatically set up everything.