Skip to content

Commit 439e3c5

Browse files
committed
Updating README to reflect the installation method
1 parent b43deb5 commit 439e3c5

File tree

1 file changed

+7
-14
lines changed

1 file changed

+7
-14
lines changed

README.md

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ af.info()
1414
a = af.randu(5, 1)
1515
1616
# Print a and its minimum value
17-
af.print_array(a)
17+
af.display(a)
1818
1919
# Print min and max values of a
2020
print("Minimum, Maximum: ", af.min(a), af.max(a))
@@ -93,27 +93,20 @@ Please check the following links for dependencies.
9393

9494
## Getting started
9595

96-
If you have not installed the ArrayFire library in your system paths, please make sure the following environment variables are exported.
97-
98-
**On Linux**
99-
100-
```
101-
export LD_LIBRARY_PATH=/path/to/arrayfire/lib:$LD_LIBRARY_PATH
102-
```
103-
104-
**On OSX**
96+
**Using pip**
10597

10698
```
107-
export DYLD_LIBRARY_PATH=/path/to/arrayfire/lib:$DYLD_LIBRARY_PATH
99+
pip install git+git://github.com/arrayfire/arrayfire.git@master
108100
```
109101

110-
On both systems, to run the example, you will need to add the python bindings to your `PYTHONPATH`
102+
**Installing offline**
111103

112104
```
113-
export PYTHONPATH=/path/to/arrayfire_python/:$PYTHONPATH
105+
cd path/to/arrayfire-python
106+
python setup.py install
114107
```
115108

116-
You are now good to go!
109+
Please follow [these instructions](https://github.com/arrayfire/arrayfire-python/wiki) to ensure the arrayfire-python can find the arrayfire libraries.
117110

118111
## Note
119112

0 commit comments

Comments
 (0)