mirror of
https://gitlab.ewi.tudelft.nl/ee2l1/2025-2026/A.K.03.git
synced 2025-12-12 16:00:56 +01:00
96 lines
2.3 KiB
Plaintext
96 lines
2.3 KiB
Plaintext
{
|
||
"cells": [
|
||
{
|
||
"cell_type": "markdown",
|
||
"metadata": {},
|
||
"source": ""
|
||
},
|
||
{
|
||
"cell_type": "markdown",
|
||
"metadata": {},
|
||
"source": [
|
||
"1. Open a terminal.\n",
|
||
" \n",
|
||
"2. Update your package manager's repository information:\n",
|
||
" \n",
|
||
"```{code-cell}\n",
|
||
" sudo apt update # For Debian/Ubuntu\n",
|
||
"``` \n",
|
||
"3. Install Python:\n",
|
||
" \n",
|
||
"```{code-cell}\n",
|
||
" sudo apt install python3 # For Debian/Ubuntu\n",
|
||
"```\n",
|
||
" \n",
|
||
"4. To verify the installation, type:\n",
|
||
" \n",
|
||
"```{code-cell}\n",
|
||
" python3 --version\n",
|
||
"```\n",
|
||
" \n",
|
||
"This should display the installed Python version."
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "markdown",
|
||
"metadata": {},
|
||
"source": [
|
||
"Open a terminal in your IP3 directory and run the following command:\n",
|
||
"```{code-cell}\n",
|
||
"pip3 install -r requirements.txt\n",
|
||
"```"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "markdown",
|
||
"metadata": {},
|
||
"source": [
|
||
"#### 1. **Linux and macOS (Intel-based)**:\n",
|
||
"On Linux and macOS (except for ARM versions like Apple Silicon), Sounddevice works out of the box. Follow these steps to ensure it’s correctly installed:\n",
|
||
"\n",
|
||
"- First, install Sounddevice using `pip`:\n",
|
||
"\n",
|
||
"```bash\n",
|
||
"pip3 install sounddevice\n",
|
||
"```\n",
|
||
"\n",
|
||
"#### 2. **macOS (Apple Silicon - ARM)**:\n",
|
||
"For users on Apple Silicon (M1, M2), the ARM version of macOS, Sounddevice needs to be installed via **Homebrew**. Follow these steps:\n",
|
||
"\n",
|
||
"- First, install the PortAudio library (which Sounddevice depends on) using Homebrew:\n",
|
||
"\n",
|
||
"```bash\n",
|
||
"brew install portaudio\n",
|
||
"```\n",
|
||
"\n",
|
||
"- Then, install Sounddevice using `pip`:\n",
|
||
"\n",
|
||
"```bash\n",
|
||
"pip3 install sounddevice\n",
|
||
"```"
|
||
]
|
||
}
|
||
],
|
||
"metadata": {
|
||
"kernelspec": {
|
||
"display_name": "OpenEdVenv",
|
||
"language": "python",
|
||
"name": "python3"
|
||
},
|
||
"language_info": {
|
||
"codemirror_mode": {
|
||
"name": "ipython",
|
||
"version": 3
|
||
},
|
||
"file_extension": ".py",
|
||
"mimetype": "text/x-python",
|
||
"name": "python",
|
||
"nbconvert_exporter": "python",
|
||
"pygments_lexer": "ipython3",
|
||
"version": "3.12.6"
|
||
}
|
||
},
|
||
"nbformat": 4,
|
||
"nbformat_minor": 2
|
||
}
|