Skip to content

Commit 63f5a1a

Browse files
authored
Merge pull request #81 from chourroutm/master
2 parents 1ce7516 + 5ef8f0f commit 63f5a1a

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,27 +34,27 @@ solving inverse problems in Magnetic Resonance Imaging.
3434

3535
Clone and install `nitorch`
3636
```shell
37-
pip install git+https://github.com/balbasty/nitorch
37+
pip install git+https://github.com/balbasty/nitorch#egg=nitorch[all]
3838

3939
# Or, alternatively
4040
git clone [email protected]:balbasty/nitorch.git
41-
pip install ./nitorch
41+
pip install -e "./nitorch[all]"
4242
```
4343

44-
However, this only installs the core dependencies (torch and numpy).
45-
If you wish to automatically install dependencies used by, _e.g._,
46-
readers and writers, plotters and/or dataset loaders, you can specify
47-
the extra tags `io`, `plot`, `data`. Alternatively, the tag `all`
48-
combines all of these dependencies.
44+
To only install the core dependencies (torch and numpy), you can strip the tag `all` from the previous command.
4945

5046
```shell
51-
pip install git+https://github.com/balbasty/nitorch#egg=nitorch[all]
47+
pip install git+https://github.com/balbasty/nitorch
5248

5349
# Or, alternatively
5450
git clone [email protected]:balbasty/nitorch.git
55-
pip install -e "./nitorch[all]"
51+
pip install -e ./nitorch
5652
```
5753

54+
If you wish to automatically install dependencies used by specific
55+
readers and writers, plotters and/or dataset loaders, you can specify
56+
the extra tags `io`, `plot`, `data`.
57+
5858
You may then start using NITorch in a Python program:
5959
```python
6060
import nitorch as ni

setup.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ project_urls =
2121
python_requires = >= 3.6
2222
# we should be able to make all numpy/scipy dependencies optional
2323
install_requires =
24-
torch >= 1.4
25-
numpy
24+
torch >= 1.4, < 2.0
25+
numpy < 2.0
2626
scipy
2727
torch-interpol
2828

0 commit comments

Comments
 (0)