mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-24 01:37:23 +00:00
Clarify venv instructions
This commit is contained in:
parent
272c8bddad
commit
63276349c8
@ -39,22 +39,17 @@ Additional dependencies exist if you you plan to perform Frontend Development, p
|
|||||||
|
|
||||||
If you plan on providing isolation to your environment using [`venv`](https://docs.python.org/3.4/library/venv.html). Within the `home-assistant` directory, create and activate your virtual environment.
|
If you plan on providing isolation to your environment using [`venv`](https://docs.python.org/3.4/library/venv.html). Within the `home-assistant` directory, create and activate your virtual environment.
|
||||||
|
|
||||||
If using Python < 3.6 `pyvenv` is the recommended method of setting up virtual environments, you'll need to install the `python3-venv` package.
|
|
||||||
```bash
|
|
||||||
$ sudo apt-get install python3-venv
|
|
||||||
$ pyvenv venv
|
|
||||||
$ source venv/bin/activate
|
|
||||||
```
|
|
||||||
|
|
||||||
If using Python 3.6 `pyvenv` has been deprecated:
|
|
||||||
```bash
|
```bash
|
||||||
$ python3 -m venv venv
|
$ python3 -m venv venv
|
||||||
$ source venv/bin/activate
|
$ source venv/bin/activate
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Note, Debian does not ship a full Python3 package and so requires you to install `venv` manually `sudo apt-get install python3-venv`.
|
||||||
|
|
||||||
### {% linkable_title Setup and Run %}
|
### {% linkable_title Setup and Run %}
|
||||||
|
|
||||||
* On Mac OS X and Linux (remember to activate your virtual environment before running setup, if you are using one):
|
* On Mac OS X and Linux:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ cd home-assistant
|
$ cd home-assistant
|
||||||
$ script/setup
|
$ script/setup
|
||||||
|
Loading…
x
Reference in New Issue
Block a user