安装 - Linux

优质
小牛编辑
152浏览
2023-12-01

Linux 系统均可通过通用指令安装,各发行版有相应的特殊安装方法。Debian 系统请参考 Raspbian 手动安装部分

Arch Linux

sudo pacman -S python
sudo pacman -S python-pip
pacaur -S home-assistant

Fedora

sudo dnf -y install python3-devel redhat-rpm-config
sudo mkdir -p /opt/homeassistant
sudo chown -R user:group /opt/homeassistant
cd /opt/homeassistant
python3.6 -m venv .
source bin/activate
pip3 install homeassistant colorlog

CentOS/RHEL

yum install centos-release-scl
yum install rh-python35
scl enable rh-python35 bash