Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 5
Installation Guide
Johan Medrano edited this page May 21, 2025
·
2 revisions
This guide will help you install all the necessary components to use SPM Python.
Just need the essentials? Here you go:
- 📦 Install Python 3.12: Windows | Apple
- 🧪 Install Matlab Runtime R2024b: Directly from Matlab | Windows | Linux | Apple Intel | Apple Silicon
- 💡 Install SPM Python:
pip install spm-python
To get started, you’ll need to install the following:
- Matlab Runtime
- Python (3.9–3.12)
- SPM Python
- Open Matlab R2024b
- Go to Apps > Get More Apps
- Search for and install Matlab Compiler SDK
- Download the Matlab Runtime online:
➡️ Matlab Runtime Download Page - Make sure to select:
- Version:
R2024b - Platform: Your OS (Windows/macOS/Linux)
- Version:
- Use the default installation path for simplicity
ℹ️ Note on Python Compatibility with MATLAB
Your Python version must match the MATLAB version you are using.
To check compatible versions, visit:
https://www.mathworks.com/support/requirements/python-compatibility.html
For Matlab R2024b, Python 3.9 to 3.12 is required
- ✅ Recommended: Download Python 3.12
⚠️ On Windows, do not use the Microsoft Store version
- Windows: Open Command Prompt
- macOS/Linux: Open Terminal
pip install spm-pythonOpen a Python console:
- macOS:
mwpython - Windows/Linux:
python
- macOS:
In Python, run the following:
fromspmimportspmspm()You should see the SPM interface launch. You're good to go! 🎉