2.1 Install MLHub on Ubuntu

20220812

MLHub targets the Ubuntu platform and is implemented in Python3. All of the curated models that are registered with MLHub are tested against Ubuntu LTS (Long Term Support) with a user who has sudo access to the system (e.g., running within a Virtual Machine on the user’s own computer). MLHub can be installed on MacOS and Windows within a Ubuntu virtual machine using VirtualBox or the Windows Subsystem for Linux (WSL). MLHub also runs native on MacOS and Windows though you will need to manually install some dependencies. Many users have reported success on these platforms.

Ubuntu can be installed on almost anything from a Raspberry Pi to a desktop or laptop, running Ubuntu directly, or through a virtual machine, or via the Windows Subsystem for Linux (WSL). GNU/Linux (Ubuntu being a distribution of GNU/Linux) is the most widely deployed operating system on cloud servers and smart devices (Android) The various options for installing Ubuntu are covered in the GNU/Linux Desktop Survival Guide. Once you have Ubuntu installed, particularly on a virtual machine, MLHub is easy.

If you have a new Ubuntu install you might first install wajig to simplify using Ubuntu. First check if it is already installed (try typing wajig into a command terminal). If not then you will need system administrator privileges to install it using sudo. You will have these privileges on your own machine or for Ubuntu in a virtual machine. Otherwise you will need to ask your system administrator. The latest version of wajig is available from the PyPI software repository. Installation of wajig will usually take less than 5 minutes.

sudo apt update
sudo apt upgrade
sudo apt install wajig
wajig update 
wajig upgrade 
wajig install python3-pip
pip install wajig

Be sure to log out and log back in after the pip install so that the system will notice your local installations. This will refresh the PATH that is used to find applications. On Ubuntu Pip installs the wajig command in ~/.local/bin. If the command can not be found then the following could be useful (but not usually required):

echo 'PATH=~/.local/bin:$PATH' >> ~/.bashrc && source ~/.bashrc

We are now ready to install MLHub from the PyPI software repository using the pip command:

pip install mlhub

This should also install required dependencies, including distro-1.9.0, gdown-5.1.0, mlhub-3.11.2, rapidfuzz-3.6.1, and yamlordereddictloader-0.4.2



Your donation will support ongoing availability and give you access to the PDF version of this book. Desktop Survival Guides include Data Science, GNU/Linux, and MLHub. Books available on Amazon include Data Mining with Rattle and Essentials of Data Science. Popular open source software includes rattle, wajig, and mlhub. Hosted by Togaware, a pioneer of free and open source software since 1984. Copyright © 1995-2022 Graham.Williams@togaware.com Creative Commons Attribution-ShareAlike 4.0