Can not install pymavlink on blueos

Currently can not get pymavlink to install for python on BlueOS terminal. Running pip3 install pymavlink returns the error that libxml2 and libxslt development packages are not installed. After installing them I now get the terminal frozen at ‘Building wheel for lxml ( …’ and nothing progresses.

At this point I am just trying to run some very basic pymavlink python example scripts on the companion computer and have no idea how. All my attempts lead to packages not being installed or cant be installed. I have followed the startup guides for installing all the firmware and tried following the ardusub guide.