Skip to content

Commit 27b186a

Browse files
authored
Merge pull request home-assistant#848 from llauren/patch-1
Add info on how to install python, pip3 and python3-libyaml on a Debian system
2 parents 6e453cd + e5255ec commit 27b186a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

source/getting-started/troubleshooting.markdown

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,19 @@ If you are able to successfully run `python3 --version` but not `pip3`, install
2121
$ python3 -m pip install homeassistant
2222
```
2323

24+
On a Debian system, you can also install python3 by `sudo apt-get install python3`, and pip3 by `sudo apt-get install python3-pip`.
25+
2426
#### {% linkable_title No module named pip %}
2527
[Pip](https://pip.pypa.io/en/stable/) 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](https://bootstrap.pypa.io/get-pip.py) and running it with Python 3:
2628

2729
```bash
2830
$ python3 get-pip.py
2931
```
3032

33+
#### {% linkable_title libyaml is not found or a compiler error %}
34+
35+
On a Debian system, install the Python 3 YAML library by `sudo apt-get install python3-yaml`.
36+
3137
#### {% linkable_title distutils.errors.DistutilsOptionError: must supply either home or prefix/exec-prefix -- not both %}
3238
This is a known issue if you're on a Mac using Homebrew to install Python. Please follow [these instructions](https://github.com/Homebrew/brew/blob/master/share/doc/homebrew/Homebrew-and-Python.md#note-on-pip-install---user) to resolve it.
3339

0 commit comments

Comments
 (0)