MilesCranmer / PySR

High-Performance Symbolic Regression in Python and Julia
https://astroautomata.com/PySR
Apache License 2.0
2.11k stars 198 forks source link

[Feature]Can i clone SymbolicRegression.jl manually while running pysr.install()? #293

Closed WhiteGL closed 1 year ago

WhiteGL commented 1 year ago

I always met difficulties about cloning git repos while running pysr.install(). But i can clone those repos manually. So can i put these repos like SymbolicRegression.jl somewhere so that i can skip the step of cloning while runing install()?

MilesCranmer commented 1 year ago

Yes, the julia_project parameter is for this purpose. Point it to the location of your local git repo.

https://astroautomata.com/PySR/api/#environment

To install dependencies manually, go to the SymbolicRegression.jl folder and type:

julia --project=. -e 'using Pkg; Pkg.instantiate()'

This is the equivalent of the install() step but ran locally.