Added venv installation steps for Windows (#5649)

* Added venv installation steps for Windows

* Update windows.markdown

* Fix typos

* Fix another typo
This commit is contained in:
Joakim Sørensen 2018-07-03 12:54:48 +02:00 committed by Fabian Affolter
parent 81c2566137
commit a771899eb0

View File

@ -15,6 +15,8 @@ To run Home Assistant on Microsoft Windows installation you need to install Pyth
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. 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.
</p> </p>
If you use your machine for something other than Home Assistant, you should install it in a [Python virtual environment](#Installing_in_a_Python_virtual_environment).
Start Start
```bash ```bash
@ -39,3 +41,27 @@ C:\...\> pip3 install --upgrade homeassistant
``` ```
Then start Home Assistant. Then start Home Assistant.
## {% linkable_title Installing in a Python virtual environment %}
Open `cmd.exe` and paste the following commands (one at the time):
```bash
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):
```bash
C:\...\> cd homeassistant
C:\...\> Scripts\activate.bat
C:\...\> py -m pip install --upgrade homeassistant
```
Then start Home Assistant.