Skip to content

Commit 4c38f68

Browse files
authored
Merge pull request #15 from dougalsutherland/patch-2
add conda-forge to installation instructions
2 parents e5ff4ea + 38e696f commit 4c38f68

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

README.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,34 +22,36 @@ Some demonstrations (both in Python and Jupyter Notebook format) are available i
2222

2323
## Installation
2424

25-
The Library has been tested on Linux and MacOSX. It requires a C++ compiler for using the EMD solver and rely on the following Python modules:
25+
The library has been tested on Linux, MacOSX and Windows. It requires a C++ compiler for using the EMD solver and relies on the following Python modules:
2626

2727
- Numpy (>=1.11)
2828
- Scipy (>=0.17)
2929
- Cython (>=0.23)
3030
- Matplotlib (>=1.5)
3131

32+
#### Pip installation
3233

33-
Under debian based linux the dependencies can be installed with
34+
You can install the toolbox through PyPI with:
3435
```
35-
sudo apt-get install python-numpy python-scipy python-matplotlib cython
36+
pip install POT
3637
```
37-
38-
To install the library, you can install it locally (after downloading it) on you machine using
38+
or get the very latest version by downloading it and then running:
3939
```
4040
python setup.py install --user # for user install (no root)
4141
```
4242

43-
The toolbox is also available on PyPI with a possibly slightly older version. You can install it with:
43+
#### Anaconda installation with conda-forge
44+
45+
If you use the Anaconda python distribution, POT is available in [conda-forge](https://conda-forge.org). To install it and the required dependencies:
4446
```
45-
pip install POT
47+
conda install -c conda-forge pot
4648
```
4749

50+
#### Post installation check
4851
After a correct installation, you should be able to import the module without errors:
4952
```python
5053
import ot
5154
```
52-
5355
Note that for easier access the module is name ot instead of pot.
5456

5557

0 commit comments

Comments
 (0)