ubuntu@xenial:~$ sudo pip3 install 'git+https://github.com/juju-solutions/matrix.git'
The directory '/home/ubuntu/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/ubuntu/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting git+https://github.com/juju-solutions/matrix.git
Cloning https://github.com/juju-solutions/matrix.git to /tmp/pip-o9dgycld-build
Collecting PyYAML==3.11 (from matrix===0.5.3)
Downloading PyYAML-3.11.zip (371kB)
100% |████████████████████████████████| 378kB 2.6MB/s
Collecting blessings==1.6 (from matrix===0.5.3)
Downloading blessings-1.6.tar.gz
Collecting attrs==16.0.0 (from matrix===0.5.3)
Downloading attrs-16.0.0-py2.py3-none-any.whl
Collecting petname==2.0 (from matrix===0.5.3)
Downloading petname-2.0.tar.gz
Collecting urwid==1.3.1 (from matrix===0.5.3)
Downloading urwid-1.3.1.tar.gz (588kB)
100% |████████████████████████████████| 593kB 2.4MB/s
Collecting theblues<1.0.0,>=0.3.7 (from matrix===0.5.3)
Downloading theblues-0.3.8.tar.gz
Collecting juju<1.0.0,>=0.0.1 (from matrix===0.5.3)
Downloading juju-0.5.tar.gz (426kB)
100% |████████████████████████████████| 430kB 2.7MB/s
Collecting enforce==0.3.1 (from matrix===0.5.3)
Downloading enforce-0.3.1-py3-none-any.whl
Collecting ubuntui<1.0.0,>=0.1.1 (from matrix===0.5.3)
Downloading ubuntui-0.1.1-py3-none-any.whl
Requirement already satisfied (use --upgrade to upgrade): requests>=2.1.1 in /usr/lib/python3/dist-packages (from theblues<1.0.0,>=0.3.7->matrix===0.5.3)
Collecting jujubundlelib>=0.4.1 (from theblues<1.0.0,>=0.3.7->matrix===0.5.3)
Downloading jujubundlelib-0.5.2.tar.gz
Collecting zkpython (from juju<1.0.0,>=0.0.1->matrix===0.5.3)
Downloading zkpython-0.4.2.tar.gz
Collecting pyOpenSSL (from juju<1.0.0,>=0.0.1->matrix===0.5.3)
Downloading pyOpenSSL-16.2.0-py2.py3-none-any.whl (43kB)
100% |████████████████████████████████| 51kB 5.5MB/s
Collecting twisted (from juju<1.0.0,>=0.0.1->matrix===0.5.3)
Downloading Twisted-16.6.0.tar.bz2 (3.0MB)
100% |████████████████████████████████| 3.0MB 742kB/s
Collecting txaws (from juju<1.0.0,>=0.0.1->matrix===0.5.3)
Downloading txAWS-0.2.3.tar.gz (106kB)
100% |████████████████████████████████| 112kB 6.0MB/s
Collecting txzookeeper (from juju<1.0.0,>=0.0.1->matrix===0.5.3)
Downloading txzookeeper-0.9.8.tar.gz (68kB)
100% |████████████████████████████████| 71kB 9.2MB/s
Collecting wrapt (from enforce==0.3.1->matrix===0.5.3)
Downloading wrapt-1.10.8.tar.gz
Collecting cryptography>=1.3.4 (from pyOpenSSL->juju<1.0.0,>=0.0.1->matrix===0.5.3)
Downloading cryptography-1.7.1.tar.gz (420kB)
100% |████████████████████████████████| 430kB 3.9MB/s
Requirement already satisfied (use --upgrade to upgrade): six>=1.5.2 in /usr/lib/python3/dist-packages (from pyOpenSSL->juju<1.0.0,>=0.0.1->matrix===0.5.3)
Collecting zope.interface>=4.0.2 (from twisted->juju<1.0.0,>=0.0.1->matrix===0.5.3)
Downloading zope.interface-4.3.3.tar.gz (150kB)
100% |████████████████████████████████| 153kB 6.8MB/s
Collecting constantly>=15.1 (from twisted->juju<1.0.0,>=0.0.1->matrix===0.5.3)
Downloading constantly-15.1.0-py2.py3-none-any.whl
Collecting incremental>=16.10.1 (from twisted->juju<1.0.0,>=0.0.1->matrix===0.5.3)
Downloading incremental-16.10.1-py2.py3-none-any.whl
Collecting python-dateutil<2.0 (from txaws->juju<1.0.0,>=0.0.1->matrix===0.5.3)
Downloading python-dateutil-1.5.tar.gz (233kB)
100% |████████████████████████████████| 235kB 5.6MB/s
Collecting idna>=2.0 (from cryptography>=1.3.4->pyOpenSSL->juju<1.0.0,>=0.0.1->matrix===0.5.3)
Downloading idna-2.1-py2.py3-none-any.whl (54kB)
100% |████████████████████████████████| 61kB 10.2MB/s
Collecting pyasn1>=0.1.8 (from cryptography>=1.3.4->pyOpenSSL->juju<1.0.0,>=0.0.1->matrix===0.5.3)
Downloading pyasn1-0.1.9-py2.py3-none-any.whl
Requirement already satisfied (use --upgrade to upgrade): setuptools>=11.3 in /usr/lib/python3/dist-packages (from cryptography>=1.3.4->pyOpenSSL->juju<1.0.0,>=0.0.1->matrix===0.5.3)
Collecting cffi>=1.4.1 (from cryptography>=1.3.4->pyOpenSSL->juju<1.0.0,>=0.0.1->matrix===0.5.3)
Downloading cffi-1.9.1-cp35-cp35m-manylinux1_x86_64.whl (398kB)
100% |████████████████████████████████| 399kB 4.2MB/s
Collecting pycparser (from cffi>=1.4.1->cryptography>=1.3.4->pyOpenSSL->juju<1.0.0,>=0.0.1->matrix===0.5.3)
Downloading pycparser-2.17.tar.gz (231kB)
100% |████████████████████████████████| 235kB 5.8MB/s
Installing collected packages: PyYAML, blessings, attrs, petname, urwid, jujubundlelib, theblues, zkpython, idna, pyasn1, pycparser, cffi, cryptography, pyOpenSSL, zope.interface, constantly, incremental, twisted, python-dateutil, txaws, txzookeeper, juju, wrapt, enforce, ubuntui, matrix
Running setup.py install for PyYAML ... done
Running setup.py install for blessings ... done
Running setup.py install for petname ... done
Running setup.py install for urwid ... done
Running setup.py install for jujubundlelib ... done
Running setup.py install for theblues ... done
Running setup.py install for zkpython ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-3biib2xy/zkpython/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-qw4p_y0w-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_ext
building 'zookeeper' extension
creating build
creating build/temp.linux-x86_64-3.5
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/c-client-src -I/usr/local/include/c-client-src -I/usr/include/zookeeper -I/usr/local/include/zookeeper -I/usr/include/python3.5m -c zookeeper.c -o build/temp.linux-x86_64-3.5/zookeeper.o
zookeeper.c:20:23: fatal error: zookeeper.h: No such file or directory
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-3biib2xy/zkpython/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-qw4p_y0w-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-3biib2xy/zkpython/
You are using pip version 8.1.1, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.