Spaces:
Sleeping
Sleeping
MilesCranmer
commited on
Commit
•
1c9ff81
1
Parent(s):
0dc4278
Add conda instructions
Browse files
README.md
CHANGED
@@ -6,9 +6,9 @@
|
|
6 |
|
7 |
PySR is built on an extremely optimized pure-Julia backend, and uses regularized evolution, simulated annealing, and gradient-free optimization to search for equations that fit your data.
|
8 |
|
9 |
-
| **Docs** | **pip** | **stats** |
|
10 |
-
|
11 |
-
|[![Documentation](https://github.com/MilesCranmer/PySR/actions/workflows/docs.yml/badge.svg)](https://astroautomata.com/PySR/)|[![PyPI version](https://badge.fury.io/py/pysr.svg)](https://badge.fury.io/py/pysr)|[![Downloads](https://pepy.tech/badge/pysr)](https://pepy.tech/badge/pysr)|
|
12 |
|
13 |
|
14 |
(pronounced like *py* as in python, and then *sur* as in surface)
|
@@ -55,24 +55,28 @@ python interface.
|
|
55 |
|
56 |
|
57 |
# Installation
|
58 |
-
PySR uses both Julia and Python, so you need to have both installed
|
|
|
|
|
59 |
|
60 |
-
|
61 |
-
then instructions for [mac](https://julialang.org/downloads/platform/#macos)
|
62 |
-
and [linux](https://julialang.org/downloads/platform/#linux_and_freebsd).
|
63 |
-
(Don't use the `conda-forge` version; it doesn't seem to work properly.)
|
64 |
-
|
65 |
-
You can install PySR with:
|
66 |
```bash
|
67 |
pip3 install pysr
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
68 |
python3 -c 'import pysr; pysr.install()'
|
69 |
```
|
70 |
-
|
71 |
`PyCall.jl`.
|
72 |
|
73 |
|
74 |
Most common issues at this stage are solved
|
75 |
-
by [tweaking the Julia package server](https://github.com/MilesCranmer/PySR/issues/27)
|
76 |
to use up-to-date packages.
|
77 |
|
78 |
# Introduction
|
|
|
6 |
|
7 |
PySR is built on an extremely optimized pure-Julia backend, and uses regularized evolution, simulated annealing, and gradient-free optimization to search for equations that fit your data.
|
8 |
|
9 |
+
| **Docs** | **pip** | **conda** | **stats** |
|
10 |
+
|---|---|---|---|
|
11 |
+
|[![Documentation](https://github.com/MilesCranmer/PySR/actions/workflows/docs.yml/badge.svg)](https://astroautomata.com/PySR/)|[![PyPI version](https://badge.fury.io/py/pysr.svg)](https://badge.fury.io/py/pysr)|[![Conda Version](https://img.shields.io/conda/vn/conda-forge/pysr.svg)](https://anaconda.org/conda-forge/pysr)|[![Downloads](https://pepy.tech/badge/pysr)](https://pepy.tech/badge/pysr)|
|
12 |
|
13 |
|
14 |
(pronounced like *py* as in python, and then *sur* as in surface)
|
|
|
55 |
|
56 |
|
57 |
# Installation
|
58 |
+
PySR uses both Julia and Python, so you need to have both installed
|
59 |
+
(or use the conda-forge one, which does this for you).
|
60 |
+
To install Julia - see the [Julia website](https://julialang.org/downloads/).
|
61 |
|
62 |
+
You can install PySR with pip:
|
|
|
|
|
|
|
|
|
|
|
63 |
```bash
|
64 |
pip3 install pysr
|
65 |
+
```
|
66 |
+
or conda (which also installs julia for you):
|
67 |
+
```bash
|
68 |
+
conda install -c conda-forge pysr
|
69 |
+
```
|
70 |
+
Both of these should be followed by the following setup command:
|
71 |
+
```bash
|
72 |
python3 -c 'import pysr; pysr.install()'
|
73 |
```
|
74 |
+
This will install and update the required Julia packages, including
|
75 |
`PyCall.jl`.
|
76 |
|
77 |
|
78 |
Most common issues at this stage are solved
|
79 |
+
by [tweaking the Julia package server](https://github.com/MilesCranmer/PySR/issues/27)
|
80 |
to use up-to-date packages.
|
81 |
|
82 |
# Introduction
|