22
33There are different ways to install MDIO:
44
5- - Install the latest release.
6- - Building package from source.
5+ - Install the latest release via [ ` pip ` ] ( #using-pip-and-virtualenv ) or [ ` conda ` ] ( #using-conda ) .
6+ - Building package [ from source] ( #building-from-source ) .
77
88``` {note}
99We strongly recommend using a virtual environment `venv` or `conda`
@@ -14,25 +14,44 @@ to avoid potential conflicts with other Python packages.
1414
1515Install the 64-bit version of Python 3 from https://www.python.org .
1616
17+ Then we can create a ` venv ` and install _ MDIO_ .
18+
1719``` shell
1820$ python -m venv mdio-venv
1921$ mdio-venv/Scripts/activate
2022$ pip install -U multidimio
2123```
2224
25+ To check if installation was successful see [ checking installation] ( #checking-installation ) .
26+
27+ You can also install some optional dependencies (extras) like this:
28+
29+ ``` shell
30+ $ pip install multidimio[distributed]
31+ $ pip install multidimio[cloud]
32+ $ pip install multidimio[lossy]
33+ ```
34+
35+ ` distributed ` installs [ Dask] [ dask ] for parallel, distributed processing.\
36+ ` cloud ` installs [ fsspec] [ fsspec ] backed I/O libraries for [ AWS' S3] [ s3fs ] ,
37+ [ Google's GCS] [ gcsfs ] , and [ Azure ABS] [ adlfs ] .\
38+ ` lossy ` will install the [ ZFPY] [ zfp ] library for lossy chunk compression.
39+
40+ [ dask ] : https://www.dask.org/
41+ [ fsspec ] : https://filesystem-spec.readthedocs.io/en/latest/
42+ [ s3fs ] : https://s3fs.readthedocs.io/
43+ [ gcsfs ] : https://gcsfs.readthedocs.io/
44+ [ adlfs ] : https://github.com/fsspec/adlfs
45+ [ zfp ] : https://computing.llnl.gov/projects/zfp
46+
2347## Using ` conda `
2448
2549MDIO can also be installed in a ` conda ` environment.
2650
27- ``` {warning}
28- Native `conda` installation for MDIO is work-in-progress. Due to the bundled
29- packages with the [Anaconda](https://www.anaconda.com/products/distribution)
30- distrtibution, installing MDIO using `pip` into the `conda` environment will
31- cause your environment to break.
32-
33- In the meantime, please use the
34- [Miniconda](https://docs.conda.io/en/latest/miniconda.html) distribution which
35- doesn't come with bundled packages.
51+ ``` {note}
52+ _MDIO_ is hosted in the `conda-forge` channel. Make sure to always provide the
53+ `-c conda-forge` when running `conda install` or else it won't be able to find
54+ the package.
3655```
3756
3857We first run the following to create and activate an environment:
@@ -42,14 +61,18 @@ $ conda create -n mdio-env
4261$ conda activate mdio-env
4362```
4463
45- Then we need to install with ` pip ` :
64+ Then we can to install with ` conda ` :
4665
4766``` shell
48- $ pip install -U multidimio
67+ $ conda install -c conda-forge multidimio
4968```
5069
5170The above command will install MDIO into your ` conda ` environment.
5271
72+ ``` {note}
73+ _MDIO_ extras must be installed separately when using `conda`.
74+ ```
75+
5376## Checking Installation
5477
5578After installing MDIO, run the following:
@@ -60,24 +83,28 @@ $ python -c "import mdio; print(mdio.__version__)"
6083
6184You should see the version of MDIO printed to the screen.
6285
63- ## Extras
86+ ## Building from Source
6487
65- You can also install some optional dependencies (extras) like this:
88+ All dependencies of _ MDIO_ are Python packages, so the build process is very simple.
89+ To install from source, we need to clone the repo first and then install locally via ` pip ` .
6690
6791``` shell
68- $ pip install multidimio[distributed]
69- $ pip install multidimio[cloud]
70- $ pip install multidimio[lossy]
92+ $ git clone https://github.com/TGSAI/mdio-python.git
93+ $ cd mdio-python
94+ $ pip install .
7195```
7296
73- ` distributed ` installs [ Dask] [ dask ] for parallel, distributed processing.\
74- ` cloud ` installs [ fsspec] [ fsspec ] backed I/O libraries for [ AWS' S3] [ s3fs ] ,
75- [ Google's GCS] [ gcsfs ] , and [ Azure ABS] [ adlfs ] .\
76- ` lossy ` will install the [ ZFPY] [ zfp ] library for lossy chunk compression.
97+ We can also install the extras in a similar way, for example:
7798
78- [ dask ] : https://www.dask.org/
79- [ fsspec ] : https://filesystem-spec.readthedocs.io/en/latest/
80- [ s3fs ] : https://s3fs.readthedocs.io/
81- [ gcsfs ] : https://gcsfs.readthedocs.io/
82- [ adlfs ] : https://github.com/fsspec/adlfs
83- [ zfp ] : https://computing.llnl.gov/projects/zfp
99+ ``` shell
100+ $ pip install .[cloud]
101+ ```
102+
103+ If you want an editable version of _ MDIO_ then we could install it with the command below.
104+ This does allow you to make code changes on the fly.
105+
106+ ``` shell
107+ $ pip install --editable .[cloud]
108+ ```
109+
110+ To check if installation was successful see [ checking installation] ( #checking-installation ) .
0 commit comments