MilesCranmer commited on
Commit
c59adef
1 Parent(s): 136d5a4

Simplify installation instructions

Browse files
Files changed (1) hide show
  1. README.md +8 -20
README.md CHANGED
@@ -57,29 +57,17 @@ python interface.
57
 
58
 
59
  # Installation
60
- PySR uses both Julia and Python, so you need to have both installed
61
- (or use the conda-forge one, which does this for you).
62
- To install Julia - see the [Julia website](https://julialang.org/downloads/).
63
 
64
- You can install PySR with pip:
65
- ```bash
66
- pip3 install pysr
67
- ```
68
- or conda (which also installs julia for you):
69
- ```bash
70
- conda install -c conda-forge pysr
71
- ```
72
- Both of these should be followed by the following setup command:
73
- ```bash
74
- python3 -c 'import pysr; pysr.install()'
75
- ```
76
- This will install and update the required Julia packages, including
77
- `PyCall.jl`.
78
 
 
 
79
 
80
- Most common issues at this stage are solved
81
- by [tweaking the Julia package server](https://github.com/MilesCranmer/PySR/issues/27)
82
- to use up-to-date packages.
83
 
84
  # Introduction
85
 
 
57
 
58
 
59
  # Installation
 
 
 
60
 
61
+ | pip | conda |
62
+ |---|---|
63
+ | 1. Install Julia (see [downloads](https://julialang.org/downloads/))<br>2. `pip install pysr`<br>3. `python -c 'import pysr; pysr.install()'` | 1. `conda install -c conda-forge pysr`<br>2. `python -c 'import pysr; pysr.install()'`|
 
 
 
 
 
 
 
 
 
 
 
64
 
65
+ This last step will install and update the required Julia packages, including
66
+ `PyCall.jl`.
67
 
68
+ Common issues tend to be related to Python not finding Julia.
69
+ To debug this, try running `python -c 'import os; print(os.environ["PATH"])'`.
70
+ If none of these folders contain your Julia binary, then you need to add Julia's `bin` folder to your `PATH` environment variable.
71
 
72
  # Introduction
73