Added note about venv upgrade (#5030)

* Added note about venv upgrade

Added a note that if you've upgraded Python you'll need to rebuild the venv.

* Minor changes

* Replace short version
This commit is contained in:
DubhAd 2018-03-29 08:23:20 +01:00 committed by Fabian Affolter
parent 069a9f570e
commit 5587190866

View File

@ -17,7 +17,7 @@ It's recommended when installing Python packages that you use a [virtual environ
_(If you're on a Debian based system, you will need to install Python virtual environment support using `apt-get install python3-pip python3-venv`.)_
<p class='Note'>
It is recommended to use the [advanced guide](/docs/installation/raspberry-pi/) which allows for the installation to run as a `homeassistant` user. The steps below may be shorter but some users find difficulty when applying updates and may run into issues.
It is recommended to use the [advanced guide](/docs/installation/raspberry-pi/) which allows for the installation to run as a `homeassistant` user. The steps below may be shorter but some users find difficulty when applying updates and may run into issues.
</p>
### {% linkable_title Install %}
@ -74,3 +74,12 @@ It is recommended to use the [advanced guide](/docs/installation/raspberry-pi/)
<p class='info'>
Looking for more advanced guides? Check our [Rasbian guide](/docs/installation/raspberry-pi/) or the [other installation guides](/docs/installation/).
</p>
### {% linkable_title After upgrading Python %}
If you've upgraded Python (for example, you were running 3.5.2 and now you've installed 3.5.4) then you'll need to build a new virtual environment. Simply rename your existing virtual environment directory:
```bash
$ mv homeassistant homeassistant.old
```
Then follow the [Install](/docs/installation/virtualenv/#install) steps again, being sure to use the newly installed version of Python.