MediaLib can be installed using pip. One of the following commands should install MediaLib and its dependencies successfully:
pip install medialib
pip install -U medialib --user
python -m pip install medialib
!pip install medialib
This installation will also include pygame.
There are multiple installations methods to install MediaLib:
- For beginner users, we recommend using either Thonny (Recommended for those using Mac computers with Apple Silicon or Linux), MU Editor or Jupyter Notebooks with Anaconda.
- For intermediate users, you can choose to use Pycharm (Recommended for those using Mac computers with Apple Silicon) or install python 3 + MediaLib individually.
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:
Installation using Thonny
Installation using MU Editor
Installation using Anaconda
Anaconda
- 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.
- Once installed Anaconda, open Anaconda Prompt on Windows or Terminal on macOS and use of the following commands to install Medialib:
pip install medialib
pip install -U medialib --user
python -m pip medialib pygame
!pip install medialib
- Open Anaconda Navigator and choose to launch (or install) a jupyter Notebook.
- A browser window will open. Navigate to where you want to save your project. Press "New" and create a new python 3 notebook.
- Add
from medialib import *
or import medialib
at the top of the program to add MediaLib to the project.
- Press run to run your project and pygame will open in another window.
Installation using Pycharm
- Go to https://www.jetbrains.com/pycharm/download/ and choose the correct version of Community PyCharm 2022 of later for your operating system.
- Once downloaded and installed PyCharm, open PyCharm CE and choose to start a New Project.
- Choose to create a new environment using Conda with python version 3.10 or later.
- To install MediaLib, select "Python Packages" on the bottom toolbar, search for "MediaLib" and press "Install".
- Add
from medialib import *
or import medialib
at the top of the program to add MediaLib to the project.
- Press the green play button to run your project and pygame will open in another window.
Installation using python 3 + MediaLib
Python 3 + MediaLib
- The latest version of python 3 can be downloaded from https://www.python.org/downloads/.
- 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.
Download medialib.py
This work is licensed under a
Creative Commons Attribution-ShareAlike 4.0 International License.