How To Install python-mvpa2 on Ubuntu 18.04
Introduction
In this tutorial we learn how to install python-mvpa2
on Ubuntu 18.04.
What is python-mvpa2
python-mvpa2 is:
PyMVPA eases pattern classification analyses of large datasets, with an accent on neuroimaging. It provides high-level abstraction of typical processing steps (e.g. data preparation, classification, feature selection, generalization testing), a number of implementations of some popular algorithms (e.g. kNN, Ridge Regressions, Sparse Multinomial Logistic Regression), and bindings to external machine learning libraries (libsvm, shogun).
While it is not limited to neuroimaging data (e.g. fMRI, or EEG) it is eminently suited for such datasets.
This is a package of PyMVPA v.2. Previously released stable version is provided by the python-mvpa package.
There are three methods to install python-mvpa2
on Ubuntu 18.04. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install python-mvpa2 Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install python-mvpa2
using apt-get
by running the following command:
sudo apt-get -y install python-mvpa2
Install python-mvpa2 Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install python-mvpa2
using apt
by running the following command:
sudo apt -y install python-mvpa2
Install python-mvpa2 Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install python-mvpa2
using aptitude
by running the following command:
sudo aptitude -y install python-mvpa2
How To Uninstall python-mvpa2 on Ubuntu 18.04
To uninstall only the python-mvpa2
package we can use the following command:
sudo apt-get remove python-mvpa2
Uninstall python-mvpa2 And Its Dependencies
To uninstall python-mvpa2
and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:
sudo apt-get -y autoremove python-mvpa2
Remove python-mvpa2 Configurations and Data
To remove python-mvpa2
configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge python-mvpa2
Remove python-mvpa2 configuration, data, and all of its dependencies
We can use the following command to remove python-mvpa2
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge python-mvpa2
References
Summary
In this tutorial we learn how to install python-mvpa2
package on Ubuntu 18.04 using different package management tools: apt
, apt-get
and aptitude
.