Skip to content

Commit 77e693e

Browse files
Weijun-Happletreeisyellow
authored andcommitted
Minor: Add installation link to README.md (apache#8389)
* Add installation link to README.md
1 parent 8875817 commit 77e693e

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ in-memory format. [Python Bindings](https://github.com/apache/arrow-datafusion-p
2828
Here are links to some important information
2929

3030
- [Project Site](https://arrow.apache.org/datafusion)
31+
- [Installation](https://arrow.apache.org/datafusion/user-guide/cli.html#installation)
3132
- [Rust Getting Started](https://arrow.apache.org/datafusion/user-guide/example-usage.html)
3233
- [Rust DataFrame API](https://arrow.apache.org/datafusion/user-guide/dataframe.html)
3334
- [Rust API docs](https://docs.rs/datafusion/latest/datafusion)

docs/source/user-guide/cli.md

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ The easiest way to install DataFusion CLI a spin is via `cargo install datafusio
3131

3232
### Install and run using Homebrew (on MacOS)
3333

34-
DataFusion CLI can also be installed via Homebrew (on MacOS). Install it as any other pre-built software like this:
34+
DataFusion CLI can also be installed via Homebrew (on MacOS). If you don't have Homebrew installed, you can check how to install it [here](https://docs.brew.sh/Installation).
35+
36+
Install it as any other pre-built software like this:
3537

3638
```bash
3739
brew install datafusion
@@ -46,6 +48,34 @@ brew install datafusion
4648
datafusion-cli
4749
```
4850

51+
### Install and run using PyPI
52+
53+
DataFusion CLI can also be installed via PyPI. You can check how to install PyPI [here](https://pip.pypa.io/en/latest/installation/).
54+
55+
Install it as any other pre-built software like this:
56+
57+
```bash
58+
pip3 install datafusion
59+
# Defaulting to user installation because normal site-packages is not writeable
60+
# Collecting datafusion
61+
# Downloading datafusion-33.0.0-cp38-abi3-macosx_11_0_arm64.whl.metadata (9.6 kB)
62+
# Collecting pyarrow>=11.0.0 (from datafusion)
63+
# Downloading pyarrow-14.0.1-cp39-cp39-macosx_11_0_arm64.whl.metadata (3.0 kB)
64+
# Requirement already satisfied: numpy>=1.16.6 in /Users/Library/Python/3.9/lib/python/site-packages (from pyarrow>=11.0.0->datafusion) (1.23.4)
65+
# Downloading datafusion-33.0.0-cp38-abi3-macosx_11_0_arm64.whl (13.5 MB)
66+
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 13.5/13.5 MB 3.6 MB/s eta 0:00:00
67+
# Downloading pyarrow-14.0.1-cp39-cp39-macosx_11_0_arm64.whl (24.0 MB)
68+
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 24.0/24.0 MB 36.4 MB/s eta 0:00:00
69+
# Installing collected packages: pyarrow, datafusion
70+
# Attempting uninstall: pyarrow
71+
# Found existing installation: pyarrow 10.0.1
72+
# Uninstalling pyarrow-10.0.1:
73+
# Successfully uninstalled pyarrow-10.0.1
74+
# Successfully installed datafusion-33.0.0 pyarrow-14.0.1
75+
76+
datafusion-cli
77+
```
78+
4979
### Run using Docker
5080

5181
There is no officially published Docker image for the DataFusion CLI, so it is necessary to build from source

0 commit comments

Comments
 (0)