I have python3.7
admin@ubun2:~$ /usr/local/bin/python3.7 --version
Python 3.7.4
– I did this from the page
Create a virtual environment in your current directory:
python3 -m venv homeassistant
Open the virtual environment:
cd homeassistant
Activate the virtual environment:
source bin/activate
Install Home Assistant:
python3 -m pip install homeassistant
What do you get if you type python3 as admin@ubun2 ?
I assume python3.5.x
So with python3 -m venv homeassistant you created a venv with python3.5 i think.
Also if your venv is activated, what shows pure python --version?
If it doesn’t show Python 3.7.4, you did something wrong with the venv.
EDIT: For example, my venv is located in /srv/hass
(hass) homeassi:~$ python --version
Python 3.7.6
(hass) homeassi:~$ which hass
/srv/hass/bin/hass
(hass) homeassi:~$ which python
/srv/hass/bin/python
(hass) homeassi:~$
I seem to have a bigger problem now. I paid someone $60 to install python3.7 because of this very problem, but it persists. I’ve worked 3 days to get this pip SSL stuff to work. 3 days and $60. I could have bought a fresh raspberry pi.
I can’t post the error because this form thinks it has more than 2 links in it, when it has none, so here is 1 frickin link with the error in it. Error Text
I decided to pull down the package it was going well until …
(homeassistant) admin@ubun2:/opt/HA/homeassistant/homeassistant-0.105.2$ sudo /opt/HA/homeassistant/bin/python setup.py install
..... lots of stuff....
Installed /opt/HA/homeassistant/lib/python3.7/site-packages/homeassistant-0.105.2-py3.7.egg
Processing dependencies for homeassistant==0.105.2
Searching for voluptuous-serialize==2.3.0
Reading https://pypi.org/simple/voluptuous-serialize/
Download error on https://pypi.org/simple/voluptuous-serialize/: unknown url type: https -- Some packages may not be found!
Couldn't find index page for 'voluptuous-serialize' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.org/simple/
Download error on https://pypi.org/simple/: unknown url type: https -- Some packages may not be found!
No local packages or working download links found for voluptuous-serialize==2.3.0
error: Could not find suitable distribution for Requirement.parse('voluptuous-serialize==2.3.0')
Now you have to look what that pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. means.
Depends on your system.
I would:
remove the venv directory and start new
Try to follow the steps here. Install the packages (i think libssl-dev is your problem)
IMPORTANT!: Your os default python3 seems 3.5.x, so try every command with python3.7 instead
Good luck!
Maybe think about using the recommended installation methods, if your not so familiar with linux.
Thanks for your help. I give up. I will buy a raspberry pi. I was manually installing each package of which there are 18, but then each one requires 1 or 2, so it turns into a factorial cluster f*ck waste of time. I’ve worked 3 days trying to solve this https problem. Money and time can’t fix it without wiping my linux box that does many other things. And I broke it during this process. I sincerely hope I can get HA to read these Wyse door sensors…
This install seemed to go ok. It seemed unclear how to run it, but a broken link and another page got me here. THANKS !!! I don’t have to buy a PI JUST to see if I can get Wyze stuff to work. I use Shelly stuff because they are the best for open source.