Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PySR could not start julia. Make sure julia is installed and on your $PATH. #70

Closed
Ting-TingGao opened this issue Aug 13, 2021 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@Ting-TingGao
Copy link

Hello Miles! Ⅰ am trying to apply your PySR to some biological dataset and wish to find some interesting results (something like compact ODE/SDE). But Ⅰ am kind of new to Julia, and when Ⅰ try to run the example, this bug jumps: "PySR could not start Julia. Make sure Julia is installed and on your $PATH". Ⅰ looked for some solution (add Julia path to the current workspace?) but Ⅰ still can't solve this problem, would you mind giving a solution? Thanks in advance.

**Ⅰ am trying to run on Mac, and the Julia version is 1.6 ('/Applications/Julia-1.6.app/Contents/Resources/julia/bin/julia'). **

And also Ⅰ am curious that if PySR will be robust when data is noisy.

Thank you very much!

@Ting-TingGao Ting-TingGao added the bug Something isn't working label Aug 13, 2021
@MilesCranmer
Copy link
Owner

As a quick fix you can add this to the top of your script:

import os
os.environ["PATH"] += ":/Applications/Julia-1.6.app/Contents/Resources/julia/bin"

@Ting-TingGao
Copy link
Author

Thank you for replying so quickly!
It works! :)

@MilesCranmer
Copy link
Owner

No problem!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants