Skip to content

Encountering invalid git HEAD (reference 'refs/heads/master' not found) Error with pysr in Python #468

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

You must be logged in to vote

Maybe try doing the dependency install manually from the command line? Like this:

PYSR_VERSION=0.16.3
SRJL_VERSION=0.22.4  # Note this must be updated when PySR version is changed. See `version.py`
julia --project="@pysr-${PYSR_VERSION}" -e "using Pkg; pkg\"add PyCall ClusterManagers SymbolicRegression@${SRJL_VERSION}\""

and then just use PySR normally (without doing the python -m pysr install, as we did that above)

Replies: 1 comment 1 reply

Comment options

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

Answer selected by MilesCranmer
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