GNU/Linux Desktop Survival Guide
by Graham Williams |
|||||
MLHub Dependencies |
20200221 Within the MLHUB.yaml file dependencies can be listed.
To install a system dependency
dependencies: system: - atril # apt install atril |
To install a system python package, for example python3-opencv:
dependencies: python3: - opencv # apt install python3-opencv |
For a Python package installed from pipy:
description: pip3: - pyfakewebcam # pip3 install pyfakewebcam |
For R package dependencies if a package needs to be installed then it will be installed into ˜/.mlhub/pkg/R/. In this way the installation of particular versions of a package will not interfere with any system or user installed versions of packages for other applications.
dependencies: cran: - rpart # install.packages("rpart") - rattle=5.2.0 # devtools::install_version("rattle", version="5.2.0") |
File dependencies in the simplest case install files from the git repository onto the local installation of the package base directory (˜/.mlhub/pkg/):
dependencies: files: - docs/README.md # Install from github as README.md in base directory. - demo.R # Install from github as demo.R in base directory. |
Arbitrary files can be downlaoded from the Internet and renamed/saved locally:
dependencies: files: - https://www.wayoutback.com.au/assets/Uploads/Uluru.jpg: cache/images/uluru.jpg - https://www.wayoutback.com.au/assets/Uploads/Uluru.jpg: cache/images/ |