How to Install python-magic in Ubuntu 18.04



Install python-magic by entering the following commands in the terminal:

sudo apt update
sudo apt install python-magic

Description:

python2 interface to the libmagic file type identification library

python-magic is a Python interface to the libmagic file type identification library. libmagic identifies file types by checking their headers according to a predefined list of file types. This functionality is exposed to the command line by the Unix command file. . This package provides the Python 2 version of the python-magic module.

Homepage: https://github.com/ahupp/python-magic/

Version: 2:0.4.15-1

Section: universe/python