Exception in Zipfile.py when installing Home Assistant through pip3 on RPI

sudo pip3 install homeassistant Collecting homeassistant Exception: Traceback (most recent call last): File "/usr/local/lib/python3.4/dist-packages/pip/basecommand.py", line 209, in main status = self.run(options, args) File "/usr/local/lib/python3.4/dist-packages/pip/commands/install.py", line 310, in run wb.build(autobuilding=True) File "/usr/local/lib/python3.4/dist-packages/pip/wheel.py", line 748, in build self.requirement_set.prepare_files(self.finder) File "/usr/local/lib/python3.4/dist-packages/pip/req/req_set.py", line 360, in prepare_files ignore_dependencies=self.ignore_dependencies)) File "/usr/local/lib/python3.4/dist-packages/pip/req/req_set.py", line 577, in _prepare_file session=self.session, hashes=hashes) File "/usr/local/lib/python3.4/dist-packages/pip/download.py", line 798, in unpack_url unpack_file_url(link, location, download_dir, hashes=hashes) File "/usr/local/lib/python3.4/dist-packages/pip/download.py", line 705, in unpack_file_url unpack_file(from_path, location, content_type, link) File "/usr/local/lib/python3.4/dist-packages/pip/utils/__init__.py", line 599, in unpack_file flatten=not filename.endswith('.whl') File "/usr/local/lib/python3.4/dist-packages/pip/utils/__init__.py", line 484, in unzip_file zip = zipfile.ZipFile(zipfp, allowZip64=True) File "/usr/lib/python3.4/zipfile.py", line 937, in __init__ self._RealGetContents() File "/usr/lib/python3.4/zipfile.py", line 978, in _RealGetContents raise BadZipFile("File is not a zip file") zipfile.BadZipFile: File is not a zip file

Getting an error when attempting to reinstall home assistant on my raspberry pi.
I reinstalled python3 and pip3.
I’m building python3.5 and pip from source.
Is there anything I’m missing?