Get Started

There are multiple installations methods to install MediaLib:

To use Medialib, add from medialib import * or import medialib at the top of the program as in the examples which can be found in the gallery.

Select one of the installation methods below to get started:

Thonny

    Thonny is a Python IDE for beginners and comes with Python 3.10 built in.

  1. Go to https://thonny.org/ and choose the correct version for your operating system.
  2. Open Thonny and a blank editor window will open.
  3. In the toolbar, click Tools => Manage Packages... to open the Package Manager.
  4. Search for MediaLib and press "Search on PyPI". Click Install.

MU Editor

    MU Editor is the easiest way to get started because pygame is included by default. However, it is more difficult to work with other libraries such as Pandas.

  1. Go to https://codewith.mu/en/download and choose the correct version of MU Editor for your operating system. This will install python 3 and pygame. Detailed instructions of how to install each version can also be found on the page.
  2. Once downloaded MediaLib.py and installed MU Editor, open MU Editor (this might take a few minutes if it is your first time opening the program) and choose "Python 3" mode. Pygame is automatically installed with this mode.
  3. Click the gear in the bottom right corner to access "MU Admininstration". Click "Third Party Packages" and Type "medialib" to download MediaLib.


  4. Add from medialib import * or import medialib at the top of the program to add MediaLib to the project.
  5. Press run to run your project and pygame will open in another window.

Anaconda
  1. Go to https://www.anaconda.com/ and choose the correct version of Anaconda for your operating system. Detailed instructions of how to install each version can also be found here for Windows and here for macOS.
  2. Once installed Anaconda, open Anaconda Prompt on Windows or Terminal on macOS and use of the following commands to install Medialib:
  3. pip install medialib

    pip install -U medialib --user

    python -m pip medialib pygame

    !pip install medialib

  4. Open Anaconda Navigator and choose to launch (or install) a jupyter Notebook.
  5. A browser window will open. Navigate to where you want to save your project. Press "New" and create a new python 3 notebook.
  6. Add from medialib import * or import medialib at the top of the program to add MediaLib to the project.
  7. Press run to run your project and pygame will open in another window.

Pycharm (Recommended for those using Mac computers with Apple Silicon)
  1. Go to https://www.jetbrains.com/pycharm/download/ and choose the correct version of Community PyCharm 2022 of later for your operating system.


  2. Once downloaded and installed PyCharm, open PyCharm CE and choose to start a New Project.
  3. Choose to create a new environment using Conda with python version 3.10 or later.


  4. To install MediaLib, select "Python Packages" on the bottom toolbar, search for "MediaLib" and press "Install".


  5. Add from medialib import * or import medialib at the top of the program to add MediaLib to the project.
  6. Press the green play button to run your project and pygame will open in another window.

Python 3 + MediaLib
  1. The latest version of python 3 can be downloaded from https://www.python.org/downloads/.
  2. MediaLib can be installed using the pip tool (this should be included with the python installation).
    • One of the following commands should install MediaLib successfully:

    pip install medialib

    pip install -U medialib --user

    python -m pip install medialib

    !pip install medialib



If you are unable to install MediaLib using pip, press the button below and complete the questionnaire to download medialib.py. Make sure medialib.py is copied into the same folder as the python (.py) or Jupyter notebook (.ipynb) file you are trying to run.

Complete the questionnaire below to download Medialib:



Creative Commons Licence
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.