Joakim Sørensen a771899eb0 Added venv installation steps for Windows (#5649)
* Added venv installation steps for Windows

* Update windows.markdown

* Fix typos

* Fix another typo
2018-07-03 12:54:48 +02:00

2.2 KiB

layout, title, description, date, sidebar, comments, sharing, footer
layout title description date sidebar comments sharing footer
page Installation on a Windows system Instructions to install Home Assistant on a Microsoft Windows system. 2017-02-23 11:00 true false true true

To run Home Assistant on Microsoft Windows installation you need to install Python first. Download Python (the latest version of Python 3.6 is recommended) for https://www.python.org/downloads/windows/ and follow the instructions of the installer.

There may be alpha or beta releases of Python listed on that download page (marked by the letters `a` or `b` in the version number. Do not use these versions.

If you use your machine for something other than Home Assistant, you should install it in a Python virtual environment.

Start

C:\...\> pip3 install homeassistant
C:\...\> py -m homeassistant --open-ui

For autostarting Home Assistant please refer to this guide.

Check this video for the installation on Windows 10.

The Microsoft Windows platform is not a primary target to install Home Assistant. Also, not all tools and third-party modules will work.

{% linkable_title Updating %}

To update Home Assistant, stop it and then run:

C:\...\> pip3 install --upgrade homeassistant

Then start Home Assistant.

{% linkable_title Installing in a Python virtual environment %}

Open cmd.exe and paste the following commands (one at the time):

C:\...\> py -m venv homeassistant
C:\...\> cd homeassistant
C:\...\> Scripts\activate.bat
C:\...\> py -m pip install wheel setuptools pip
C:\...\> py -m pip install homeassistant
C:\...\> hass

{% linkable_title Upgrading in a Python virtual environment %}

To update Home Assistant, stop it and then open cmd.exe and paste the following commands (one at the time):

C:\...\> cd homeassistant
C:\...\> Scripts\activate.bat
C:\...\> py -m pip install --upgrade homeassistant

Then start Home Assistant.