Download and Installation¶
python-discid works with Python 2 >= 2.6, or Python 3 >= 3.1.
discid cannot be imported
without Libdiscid >= 0.2.2 installed.
If you want to use it as optional dependency,
import the module only when needed or catch the
when libdiscid is not found.
Package Repositories (Linux)¶
If you are using Linux, you might find python-discid in a repository used by your package manager.
These packages are known:
Your package manager will also handle the libdiscid dependency automatically.
pip install discid
You still have to install Libdiscid.
You can always get the latest code with git:
git clone https://github.com/JonnyJD/python-discid.git
If you don’t have a package manager that takes care of the Libdiscid dependency, you have to download it manually.
You can find several builds and the source at http://musicbrainz.org/doc/libdiscid.
If no build for your platform is available, you have to build from source and install with:
cmake . make make install
If the last step doesn’t work for you,
you might have to place the files
(depending on your platform)
in the same directory as you start your script from
or somewhere in your