How To Install python-neuroshare on Ubuntu 18.04

In this tutorial we learn how to install python-neuroshare on Ubuntu 18.04. python-neuroshare is Python interface and tools for Neuroshare

Introduction

In this tutorial we learn how to install python-neuroshare on Ubuntu 18.04.

What is python-neuroshare

python-neuroshare is:

The Neuroshare API is a standardized interface to access electrophysiology data stored in various different file formats. To do so, it uses format- specific shared libraries.

This package provides a high-level Python interface to the Neuroshare API that focuses on convenience for the user and enables access to all available metadata and data. The data is returned in NumPy arrays, which provides a quick route to further examination and analysis.

In addition, this package contains the ns2hdf converter tool that converts neuroshare-compatible files into the HDF5 (Hierarchical Data Format, ver. 5) file format.

There are three methods to install python-neuroshare 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-neuroshare 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-neuroshare using apt-get by running the following command:

sudo apt-get -y install python-neuroshare

Install python-neuroshare Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install python-neuroshare using apt by running the following command:

sudo apt -y install python-neuroshare

Install python-neuroshare 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-neuroshare using aptitude by running the following command:

sudo aptitude -y install python-neuroshare

How To Uninstall python-neuroshare on Ubuntu 18.04

To uninstall only the python-neuroshare package we can use the following command:

sudo apt-get remove python-neuroshare

Uninstall python-neuroshare And Its Dependencies

To uninstall python-neuroshare and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove python-neuroshare

Remove python-neuroshare Configurations and Data

To remove python-neuroshare configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge python-neuroshare

Remove python-neuroshare configuration, data, and all of its dependencies

We can use the following command to remove python-neuroshare configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge python-neuroshare

References

Summary

In this tutorial we learn how to install python-neuroshare package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.