Upgrade help

I’m new to home assistant, had just about got my head round what I wanted to do and then I seem to have messed up an upgrade. Any help appreciated

Collecting homeassistant
  Using cached homeassistant-0.19.4-py2.py3-none-any.whl
Requirement already up-to-date: pytz>=2016.4 in /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages (from homeassistant)
Requirement already up-to-date: requests<3,>=2 in /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages (from homeassistant)
Requirement already up-to-date: voluptuous==0.8.9 in /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages (from homeassistant)
Requirement already up-to-date: vincenty==0.1.4 in /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages (from homeassistant)
Requirement already up-to-date: jinja2>=2.8 in /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages (from homeassistant)
Requirement already up-to-date: pip>=7.0.0 in /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages (from homeassistant)
Requirement already up-to-date: pyyaml<4,>=3.11 in /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages (from homeassistant)
Requirement already up-to-date: setuptools>=0.6b1 in /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages (from voluptuous==0.8.9->homeassistant)
Requirement already up-to-date: MarkupSafe in /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages (from jinja2>=2.8->homeassistant)
Installing collected packages: homeassistant
  Found existing installation: homeassistant 0.19.2
    Uninstalling homeassistant-0.19.2:
Exception:
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/shutil.py", line 538, in move
    os.rename(src, real_dst)
PermissionError: [Errno 13] Permission denied: '/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/homeassistant-0.19.2.dist-info/DESCRIPTION.rst' -> '/var/folders/02/w7b53bk88xj5k70059bkd1n80000gn/T/pip-p22_joda-uninstall/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/homeassistant-0.19.2.dist-info/DESCRIPTION.rst'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pip/commands/install.py", line 317, in run
    prefix=options.prefix_path,
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pip/req/req_set.py", line 736, in install
    requirement.uninstall(auto_confirm=True)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pip/req/req_install.py", line 742, in uninstall
    paths_to_remove.remove(auto_confirm)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pip/req/req_uninstall.py", line 115, in remove
    renames(path, new_path)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pip/utils/__init__.py", line 267, in renames
    shutil.move(old, new)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/shutil.py", line 553, in move
    os.unlink(src)
PermissionError: [Errno 13] Permission denied: '/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/homeassistant-0.19.2.dist-info/DESCRIPTION.rst'

It seems that you have used a different user (perhaps root) for the 0.19.2 installation.

I had this problem

So I ran this first

> sudo pip install --upgrade pip

then I ran

sudo pip3 install --upgrade homeassistant

Note that this means you’ll have to upgrade, and maybe run, HASS as root from now on. This is not recommended.