Skip to content

Commit b0eaeb0

Browse files
authored
Merge pull request #36 from LabForComputationalVision/conda_install
Adds conda install instructions
2 parents b1228f8 + bf51f05 commit b0eaeb0

4 files changed

Lines changed: 39 additions & 11 deletions

File tree

README.md

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# pyrtools: tools for multi-scale image processing
22

33
[![PyPI Version](https://img.shields.io/pypi/v/pyrtools.svg)](https://pypi.org/project/pyrtools/)
4+
[![Anaconda-Server Badge](https://anaconda.org/conda-forge/pyrtools/badges/version.svg)](https://anaconda.org/conda-forge/pyrtools)
45
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/LabForComputationalVision/pyrtools/blob/main/LICENSE)
56
![Python version](https://img.shields.io/badge/python-3.8|3.9|3.10|3.11|3.12-blue.svg)
67
[![Build Status](https://github.com/LabForComputationalVision/pyrtools/workflows/build/badge.svg)](https://github.com/LabForComputationalVision/pyrtools/actions?query=workflow%3Abuild)
@@ -42,13 +43,31 @@ repo](https://github.com/LabForComputationalVision/pyrtools)
4243

4344
# Installation
4445

45-
It's recommended you install from pip: `pip install pyrtools`.
46+
You can install `pyrtools` using either pip:
4647

47-
If you wish to install from the main branch, it's still recommended
48-
to use pip, just run `pip install .` (or `pip install -e .` if you
49-
want the changes you make in the directory to be reflected in your
50-
install) from the root directory of this project. The core of this
51-
code is the C code, and the pip install will compile it nicely.
48+
```sh
49+
pip install pyrtools
50+
```
51+
52+
or conda:
53+
54+
```sh
55+
conda install pyrtools -c conda-forge
56+
```
57+
58+
You may also install from source, directly from the git repository. This is
59+
largely useful if you are seeking to modify the code or make contributions. To
60+
do so, clone the repository and run `pip install`. On Mac or Linux, that looks
61+
like:
62+
63+
``` sh
64+
git clone https://github.com/LabForComputationalVision/pyrtools.git
65+
cd pyrtools/
66+
pip install .
67+
```
68+
69+
You may also want an editable install, `pip install -e .`, in which case changes
70+
you make in the source code will be reflected in your install.
5271

5372
# Pyramid resources
5473

docs/index.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
.. |pypi-shield| image:: https://img.shields.io/pypi/v/pyrtools.svg
22
:target: https://pypi.org/project/pyrtools/
33

4+
.. |conda-shield| image:: https://anaconda.org/conda-forge/pyrtools/badges/version.svg
5+
:target: https://anaconda.org/conda-forge/pyrtools
6+
47
.. |license-shield| image:: https://img.shields.io/badge/license-MIT-yellow.svg
58
:target: https://github.com/LabForComputationalVision/pyrtools/blob/main/LICENSE
69

@@ -23,7 +26,7 @@
2326
pyrtools
2427
====================================
2528

26-
|pypi-shield| |license-shield| |python-version-shield| |build| |binder| |doi|
29+
|pypi-shield| |conda-shield| |license-shield| |python-version-shield| |build| |binder| |doi|
2730

2831
Pyrtools is a python package for multi-scale image processing, adapted
2932
from Eero Simoncelli's `matlabPyrTools

docs/installation.rst

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,24 @@
33
Installation
44
************
55

6-
There are two ways to install pyrtools: via the ``pip`` package management
7-
system, or directly from source.
6+
You can install pyrtools via the ``pip`` package management system, via
7+
``conda``, or directly from source.
88

99
.. attention:: Windows support was added in version 1.0.3. If you are on Windows and get an installation error, make sure you are installing the newest version.
1010

1111
Recommended
1212
===========
1313

14-
In a shell, please run::
14+
We recommend using either ``pip`` or ``conda``.
15+
16+
To install using ``pip``, run the following in a shell::
1517

1618
pip install pyrtools
1719

20+
To install using ``conda``, run the following in a shell::
21+
22+
conda install pyrtools -c conda-forge
23+
1824
From source
1925
===========
2026

docs/quickstart.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Quick Start
22
*************
33

4-
On Linux or macOS, open a shell and run::
4+
Open a shell and run::
55

66
pip install pyrtools
77

0 commit comments

Comments
 (0)