安装 Apache Arrow
当前版本: 16.1.0 (2024-05-14)
查看 发行说明 了解有关新功能的更多信息。有关以前版本的详细信息,请参见 此处。Rust 和 Julia 库是单独发布的。有关详细信息,请参见以下页面
- Rust: arrow crate 文档
- Julia: Arrow.jl 包的仓库
此页面是发行工件和包管理器的参考列表。有关特定于语言的用户指南,请参见上面“文档”菜单中列出的页面。
源代码发行版
- 源代码发行版: apache-arrow-16.1.0.tar.gz
- 验证: asc 签名, sha256 校验和, sha512 校验和, (验证说明)
- Git 标签 7dd1d34074af176d9e861a360e135ae57b21cf96
- 发行版签名的 GPG 密钥
Java 包
Python 轮子
我们已在 PyPI 上为 Linux、macOS 和 Windows 提供了官方二进制轮子
pip install pyarrow==16.1.*
我们建议在 requirements.txt
中固定 16.1.*
以安装最新的补丁版本。
这些包括与轮子捆绑在一起的 Apache Arrow 和 Apache Parquet C++ 二进制库。
Go 模块
Go 模块使用其版本进行标记,可以使用 go get
轻松安装
go get github.com/apache/arrow/go/[email protected]
然后可以使用以下方法导入 Apache Arrow 模块
import "github.com/apache/arrow/go/v/arrow"
适用于 Debian GNU/Linux、Ubuntu、AlmaLinux、CentOS 和 Amazon Linux 的 C++ 和 GLib (C) 包
我们为 Apache Arrow C++ 和 Apache Arrow GLib (C) 提供了 APT 和 Yum 存储库。以下是支持的平台
- Debian GNU/Linux bullseye
- Debian GNU/Linux bookworm
- Debian GNU/Linux trixie
- Ubuntu 20.04 LTS
- Ubuntu 22.04 LTS
- AlmaLinux 8
- AlmaLinux 9
- CentOS 7
- CentOS Stream 8
- CentOS Stream 9
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- Amazon Linux 2023
- Oracle Linux 8
- Oracle Linux 9
Debian GNU/Linux 和 Ubuntu
sudo apt update
sudo apt install -y -V ca-certificates lsb-release wget
wget https://apache.jfrog.io/artifactory/arrow/$(lsb_release --id --short | tr 'A-Z' 'a-z')/apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb
sudo apt install -y -V ./apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb
sudo apt update
sudo apt install -y -V libarrow-dev # For C++
sudo apt install -y -V libarrow-glib-dev # For GLib (C)
sudo apt install -y -V libarrow-dataset-dev # For Apache Arrow Dataset C++
sudo apt install -y -V libarrow-dataset-glib-dev # For Apache Arrow Dataset GLib (C)
sudo apt install -y -V libarrow-acero-dev # For Apache Arrow Acero
sudo apt install -y -V libarrow-flight-dev # For Apache Arrow Flight C++
sudo apt install -y -V libarrow-flight-glib-dev # For Apache Arrow Flight GLib (C)
sudo apt install -y -V libarrow-flight-sql-dev # For Apache Arrow Flight SQL C++
sudo apt install -y -V libarrow-flight-sql-glib-dev # For Apache Arrow Flight SQL GLib (C)
sudo apt install -y -V libgandiva-dev # For Gandiva C++
sudo apt install -y -V libgandiva-glib-dev # For Gandiva GLib (C)
sudo apt install -y -V libparquet-dev # For Apache Parquet C++
sudo apt install -y -V libparquet-glib-dev # For Apache Parquet GLib (C)
AlmaLinux 8/9、Oracle Linux 8/9、Red Hat Enterprise Linux 8/9 和 CentOS Stream 8/9
sudo dnf install -y epel-release || sudo dnf install -y oracle-epel-release-el$(cut -d: -f5 /etc/system-release-cpe | cut -d. -f1) || sudo dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-$(cut -d: -f5 /etc/system-release-cpe | cut -d. -f1).noarch.rpm
sudo dnf install -y https://apache.jfrog.io/artifactory/arrow/almalinux/$(cut -d: -f5 /etc/system-release-cpe | cut -d. -f1)/apache-arrow-release-latest.rpm
sudo dnf config-manager --set-enabled epel || :
sudo dnf config-manager --set-enabled powertools || :
sudo dnf config-manager --set-enabled crb || :
sudo dnf config-manager --set-enabled ol$(cut -d: -f5 /etc/system-release-cpe | cut -d. -f1)_codeready_builder || :
sudo dnf config-manager --set-enabled codeready-builder-for-rhel-$(cut -d: -f5 /etc/system-release-cpe | cut -d. -f1)-rhui-rpms || :
sudo subscription-manager repos --enable codeready-builder-for-rhel-$(cut -d: -f5 /etc/system-release-cpe | cut -d. -f1)-$(arch)-rpms || :
sudo dnf install -y arrow-devel # For C++
sudo dnf install -y arrow-glib-devel # For GLib (C)
sudo dnf install -y arrow-dataset-devel # For Apache Arrow Dataset C++
sudo dnf install -y arrow-dataset-glib-devel # For Apache Arrow Dataset GLib (C)
sudo dnf install -y arrow-acero-devel # For Apache Arrow Acero C++
sudo dnf install -y arrow-flight-devel # For Apache Arrow Flight C++
sudo dnf install -y arrow-flight-glib-devel # For Apache Arrow Flight GLib (C)
sudo dnf install -y arrow-flight-sql-devel # For Apache Arrow Flight SQL C++
sudo dnf install -y arrow-flight-sql-glib-devel # For Apache Arrow Flight SQL GLib (C)
sudo dnf install -y gandiva-devel # For Apache Gandiva C++
sudo dnf install -y gandiva-glib-devel # For Apache Gandiva GLib (C)
sudo dnf install -y parquet-devel # For Apache Parquet C++
sudo dnf install -y parquet-glib-devel # For Apache Parquet GLib (C)
CentOS 7 和 Red Hat Enterprise Linux 7
sudo yum install -y epel-release || sudo yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-$(cut -d: -f5 /etc/system-release-cpe | cut -d. -f1).noarch.rpm
sudo yum install -y https://apache.jfrog.io/artifactory/arrow/centos/$(cut -d: -f5 /etc/system-release-cpe | cut -d. -f1)/apache-arrow-release-latest.rpm
sudo yum install -y --enablerepo=epel arrow-devel # For C++
sudo yum install -y --enablerepo=epel arrow-glib-devel # For GLib (C)
sudo yum install -y --enablerepo=epel arrow-dataset-devel # For Apache Arrow Dataset C++
sudo yum install -y --enablerepo=epel arrow-dataset-glib-devel # For Apache Arrow Dataset GLib (C)
sudo yum install -y --enablerepo=epel arrow-acero-devel # For Apache Arrow Acero
sudo yum install -y --enablerepo=epel parquet-devel # For Apache Parquet C++
sudo yum install -y --enablerepo=epel parquet-glib-devel # For Apache Parquet GLib (C)
Amazon Linux 2023
sudo dnf install -y https://apache.jfrog.io/artifactory/arrow/amazon-linux/$(cut -d: -f6 /etc/system-release-cpe)/apache-arrow-release-latest.rpm
sudo dnf install -y arrow-devel # For C++
sudo dnf install -y arrow-glib-devel # For GLib (C)
sudo dnf install -y arrow-acero-devel # For Apache Arrow Acero
sudo dnf install -y arrow-dataset-devel # For Apache Arrow Dataset C++
sudo dnf install -y arrow-dataset-glib-devel # For Apache Arrow Dataset GLib (C)
sudo dnf install -y arrow-flight-devel # For Apache Arrow Flight C++
sudo dnf install -y arrow-flight-glib-devel # For Apache Arrow Flight GLib (C)
sudo dnf install -y arrow-flight-sql-devel # For Apache Arrow Flight SQL C++
sudo dnf install -y arrow-flight-sql-glib-devel # For Apache Arrow Flight SQL GLib (C)
sudo dnf install -y gandiva-devel # For Apache Gandiva C++
sudo dnf install -y gandiva-glib-devel # For Apache Gandiva GLib (C)
sudo dnf install -y parquet-devel # For Apache Parquet C++
sudo dnf install -y parquet-glib-devel # For Apache Parquet GLib (C)
C# 包
我们为 Apache Arrow C# 提供了 NuGet 包
其他安装程序
为了方便起见,我们还通过多个包管理器提供包。其中许多是二进制的,从源代码发行版构建而成。由于 Apache Arrow PMC 没有明确投票通过这些包,因此它们在技术上被认为是非官方版本。
C++ 和 Python Conda 包
二进制 conda 包位于 conda-forge 上,适用于以下版本的 Linux (x86_64、aarch64、ppc64le)、macOS (x86_64 和 arm64) 和 Windows (x86_64)
- Python 3.8、3.9、3.10、3.11
- R 4.1、4.2、4.3
使用以下方法安装它们
conda install arrow-cpp=16.1.* -c conda-forge
conda install pyarrow=16.1.* -c conda-forge
conda install r-arrow=16.1.* -c conda-forge
Homebrew 上的 C++ 和 GLib (C) 包
在 macOS 上,可以使用 Homebrew 安装 C++ 库
brew install apache-arrow
以及使用以下方法安装 GLib (C) 包
brew install apache-arrow-glib
适用于 MSYS2 的 C++ 和 GLib (C) 包
MSYS2 包包括 Apache Arrow C++ 和 GLib (C) 包。可以使用 pacman
安装该包。
UCRT 64 位版本
pacman -S --noconfirm mingw-w64-ucrt-x86_64-arrow
64 位版本
pacman -S --noconfirm mingw-w64-x86_64-arrow
32 位版本
pacman -S --noconfirm mingw-w64-i686-arrow
vcpkg 上的 C++ 包
可以使用 vcpkg 依赖项管理器下载和安装 Apache Arrow C++
git clone https://github.com/Microsoft/vcpkg.git
cd vcpkg
./bootstrap-vcpkg.sh
./vcpkg integrate install
./vcpkg install arrow
vcpkg 中的 Apache Arrow C++ 端口由 Microsoft 团队成员和社区贡献者保持最新。如果版本过时,请在 vcpkg 存储库上 创建问题或拉取请求。
CRAN 上的 R 包
使用以下方法从 CRAN 安装 R 包
install.packages("arrow")
RubyGems 上的 Ruby 包
使用以下方法从 RubyGems 安装适用于 Ruby 3.0、3.1 和 3.2 的 Ruby 包
gem install red-arrow
gem install red-arrow-cuda # For CUDA support
gem install red-arrow-dataset # For Apache Arrow Dataset support
gem install red-arrow-flight # For Apache Arrow Flight support
gem install red-arrow-flight-sql # For Apache Arrow Flight SQL support
gem install red-gandiva # For Gandiva support
gem install red-parquet # For Apache Parquet support