Error Installing oDrive Tool

I am trying to install following instructions on your website. Tried to install with pip and pip3. Error at bottom seams to deal with matplotlib?

tb0@tb0-desktop:/$ sudo pip3 install --upgrade odrive

(can’t post all the output because it contains links and new users can’t post more than two links in a post.)

----------------------------------------

Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-build-jwox_xr4/matplotlib/

According to the internet, your python setuptools are out of date.

pip3 install --upgrade setuptools

I also had to do:

pip3 install --upgrade pip

I was able to upgrade odrive tool. Now my issue is in configuring. According to your documentation to set the control mode you first enter the axis and then controller. I think this might be backwards.

axis.controller.config.control_mode = CONTROL_MODE_VELOCITY_CONTROL

Should be:
odrv0.axis0.config.control_mode = CONTROL_MODE_VELOCITY_CONTROL

AttributeError: Attribute control_mode not found