Troubleshooting Installation Problems


It can happen that you run into trouble while installing Home Assistant. This page is here to help you solve the most common problems.

pip3: command not found

This utility should have been installed as part of the Python 3.4 installation. Check if Python 3.4 is installed by running python3 --version. If it is not installed, download it here.

If you are able to successfully run python3 --version but not pip3, install Home Assistant by running the following command instead:

$ python3 -m pip install homeassistant

No module named pip

Pip should come bundled with the latest Python 3 but is omitted by some distributions. If you are unable to run python3 -m pip --version you can install pip by downloading the installer and running it with Python 3:

$ python3 get-pip.py

distutils.errors.DistutilsOptionError: must supply either home or prefix/exec-prefix – not both

This is a known issue if you’re on a Mac using Homebrew to install Python. Please follow these instructions to resolve it.

CentOS and Python 3

To run Python 3.x on CentOS or RHEL, Software Collections needs to be activated.

No access to the frontend

In newer Linux distributions (at least Fedora 22/CentOS 7) the access to a host is very limited. This means that you can’t access the Home Assistant frontend that is running on a host outside of the host machine. Windows and OSX machines may also have issues with this.

To fix this you will need to open your machine’s firewall for TCP traffic over port 8123. The method for doing this will vary depending on your operating system and the firewall you have installed. Below are some suggestions to try. Google is your friend here.

Windows instructions
Mac OSX instructions

For systems with firewalld (Fedora, CentOS/RHEL, etc.):

$ sudo firewall-cmd --permanent --add-port=8123/tcp
$ sudo firewall-cmd --reload

For UFW systems (Ubuntu, Debian, Raspbian, etc.):

$ sudo ufw allow 8123/tcp

For iptables systems (was the default for older distributions):

$ iptables -I INPUT -p tcp --dport 8123 -j ACCEPT
$ iptables-save > /etc/network/iptables.rules  # your rules may be saved elsewhere

Run the development version

If you want to stay on top of the development of Home Assistant then you can upgrade to the dev branch. This can result in an unstable system, loss of data, etc. etc.

$ pip3 install --upgrade git+git://github.com/balloob/home-assistant.git@dev

« Back to Getting Started