Dies ist eine alte Version des Dokuments!
Installing Miniconda and Jupyter
This guide explains how to install Miniconda and JupyterLab on Windows, macOS, and Linux.
Miniconda is a minimal Python distribution containing Python, the conda package/environment manager, and a small set of basic packages.
Jupyter is not included by default, so after installing Miniconda we will create a separate environment containing JupyterLab.
1. Download Miniconda
The download links in this tutorial use Anaconda's latest installers. These links always point to the newest available Miniconda release, so you do not need to search for a particular version number.
| Operating system | Architecture | Installer |
|---|---|---|
| Windows 10/11 | 64-bit Intel/AMD (x86-64) | Download the latest Windows x86-64 installer |
| macOS | Apple Silicon (M1/M2/M3/M4/M5, ARM64) | Download the latest MacOSX-arm64 installer |
| macOS | Intel (x86-64, older Macs) | Download the Intel MacOSX-x86_64 installer |
| Linux | 64-bit Intel/AMD (x86-64) | Download the latest Linux-x86_64 installer |
| Linux | ARM64 / AArch64 | Download the latest Linux-aarch64 installer |
<note important> Most Macs sold since late 2020 use Apple Silicon.
Intel Macs are now a legacy platform for Anaconda/Miniconda. An Intel installer is still available, but new Intel macOS builds are no longer produced. </note>
2. Windows
Install Miniconda
* Download the Windows x86-64 .exe installer.
* Double-click the downloaded file.
* Select Just Me.
* Keep the default installation directory unless you have a reason to change it.
* On the Advanced Installation Options screen:
- keep Create shortcuts enabled;
- do not enable Add Miniconda3 to my PATH environment variable;
- keeping Register Miniconda3 as my default Python enabled is normally fine on a fresh computer.
* Finish the installation.
Verify the installation
Open the Windows Start menu and search for:
Anaconda Prompt
You should see (base) at the beginning of the command line.
Run:
conda --version python --version
If both commands print version numbers, Miniconda is installed correctly.
Optional: use conda from PowerShell
If you want to use normal PowerShell instead of Anaconda Prompt, run this once from Anaconda Prompt:
conda init powershell
Then close and reopen PowerShell.
3. macOS
Check which Mac you have
You can check the processor under:
Apple menu → About This Mac
Alternatively, open Terminal and run:
uname -m
Possible results:
* arm64 → Apple Silicon → use the MacOSX-arm64 installer.
* x86_64 → Intel Mac → use the MacOSX-x86_64 installer.
Install Miniconda
* Download the appropriate .pkg installer.
* Open it.
* Follow the installation wizard.
* When installation has finished, close and reopen Terminal.
Verify the installation:
conda --version python --version
If conda is not found, first close and reopen Terminal.
If it is still not found, initialize conda manually:
~/miniconda3/bin/conda init zsh source ~/.zshrc
4. Linux
Check the CPU architecture
Open a terminal and run:
uname -m
Usually you will see one of these:
* x86_64 → standard Intel/AMD PC → use Linux-x86_64.
* aarch64 or arm64 → ARM64 machine → use Linux-aarch64.
Install Miniconda
Download the appropriate .sh installer. It will normally be saved in ~/Downloads.
For a normal Intel/AMD Linux computer:
cd ~/Downloads bash Miniconda3-latest-Linux-x86_64.sh
For an ARM64 Linux computer:
cd ~/Downloads bash Miniconda3-latest-Linux-aarch64.sh
During installation:
* press Enter to read the license;
* type yes to accept it;
* press Enter to accept the default installation location;
* answer yes when asked whether conda should initialize your shell.
After installation, close and reopen the terminal.
Alternatively, refresh the current terminal.
For Bash:
source ~/.bashrc
For Zsh:
source ~/.zshrc
Verify the installation:
conda --version python --version
5. Create a Jupyter environment
The following steps are the same on Windows, macOS, and Linux.
<note>
It is good practice not to install course packages directly into the base environment.
Instead, we create a separate environment for Jupyter and the packages used in the course. </note>
Create an environment named jupyter containing Python 3.13, JupyterLab, and the Python kernel:
conda create -n jupyter -c conda-forge --override-channels python=3.13 jupyterlab ipykernel
When conda asks whether to continue, type:
y
Activate the environment:
conda activate jupyter
Your command prompt should now begin with something similar to:
(jupyter)
6. Start JupyterLab
First activate the environment if it is not already active:
conda activate jupyter
Navigate to the directory in which you want to work.
For example, on macOS/Linux:
cd ~/Documents
On Windows:
cd %USERPROFILE%\Documents
Then start JupyterLab:
jupyter lab
JupyterLab should open automatically in your web browser.
<note> Do not close the terminal window while JupyterLab is running. The Jupyter server runs in this terminal. </note>
7. Test the installation
In JupyterLab:
* select File → New → Notebook, or click the Python notebook icon in the launcher; * create a new cell; * enter:
print("Jupyter is working!") import sys print(sys.version) print(sys.executable)
Run the cell with:
Shift + Enter
If the output is displayed without an error, the installation is working.
8. Stop JupyterLab
Return to the terminal in which JupyterLab is running and press:
Ctrl+C
If asked whether you want to shut down the server, confirm with y.
9. Using Jupyter later
Every time you want to use this environment, open a terminal or Anaconda Prompt and run:
conda activate jupyter jupyter lab
To leave the environment:
conda deactivate
10. Installing additional Python packages
Activate the environment first:
conda activate jupyter
For example, to install NumPy, pandas, SciPy, and Matplotlib:
conda install -c conda-forge --override-channels numpy pandas scipy matplotlib
For packages that are not available through conda, use pip only after activating the correct conda environment:
python -m pip install PACKAGE_NAME
Using:
python -m pip
instead of simply:
pip
helps ensure that the package is installed into the currently active Python environment.
11. Useful conda commands
| Command | Meaning |
|---|---|
conda env list | List all conda environments |
conda activate jupyter | Activate the Jupyter environment |
conda deactivate | Leave the current environment |
conda list | List packages installed in the active environment |
conda remove -n jupyter –all | Completely delete the Jupyter environment |
Troubleshooting
''conda: command not found''
First close and reopen the terminal.
On macOS with Zsh:
~/miniconda3/bin/conda init zsh source ~/.zshrc
On Linux with Bash:
~/miniconda3/bin/conda init bash source ~/.bashrc
On Windows, open Anaconda Prompt from the Start menu instead of a normal Command Prompt.
Jupyter opens in the wrong environment
Make sure that the jupyter environment is active before starting JupyterLab:
conda activate jupyter jupyter lab
You can check which Python executable is currently being used with:
python -c "import sys; print(sys.executable)"
The displayed path should contain the jupyter conda environment.
Further information
See the official Miniconda, conda, and Project Jupyter documentation for additional information.