Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
| en:miniconda [2026/08/07 13:57] – angelegt egorpoly | en:miniconda [2026/08/07 14:01] (aktuell) – [5. Create a Jupyter environment] egorpoly | ||
|---|---|---|---|
| Zeile 3: | Zeile 3: | ||
| This guide explains how to install **Miniconda** and **JupyterLab** on Windows, macOS, and Linux. | This guide explains how to install **Miniconda** and **JupyterLab** on Windows, macOS, and Linux. | ||
| - | Miniconda is a minimal Python distribution containing Python, the '' | + | Miniconda is a minimal Python distribution containing Python, the '' |
| - | + | ||
| - | **Jupyter is not included by default**, so after installing Miniconda | + | |
| ===== 1. Download Miniconda ===== | ===== 1. Download Miniconda ===== | ||
| - | The download | + | The links below use Anaconda' |
| ^ Operating system ^ Architecture ^ Installer ^ | ^ Operating system ^ Architecture ^ Installer ^ | ||
| - | | Windows 10/11 | 64-bit Intel/AMD (x86-64) | Download the latest Windows | + | | Windows 10/11 | 64-bit Intel/AMD (x86-64) | [[https:// |
| - | | macOS | Apple Silicon (M1/ | + | | macOS | Apple Silicon (M1/ |
| - | | macOS | Intel (x86-64, older Macs) | Download the Intel MacOSX-x86_64 | + | | macOS | Intel (x86-64, older Macs) | [[https:// |
| - | | Linux | 64-bit Intel/AMD (x86-64) | Download the latest Linux-x86_64 | + | | Linux | 64-bit Intel/AMD (x86-64) | [[https:// |
| - | | Linux | ARM64 / AArch64 | Download the latest Linux-aarch64 | + | | Linux | ARM64 / AArch64 | [[https:// |
| - | <note important> | + | All available installers can also be found here: |
| - | Most Macs sold since late 2020 use **Apple Silicon**. | + | |
| - | Intel Macs are now a legacy platform for Anaconda/ | + | [[https:// |
| + | |||
| + | **Important: | ||
| ===== 2. Windows ===== | ===== 2. Windows ===== | ||
| Zeile 27: | Zeile 26: | ||
| ==== Install Miniconda ==== | ==== Install Miniconda ==== | ||
| - | * Download the **Windows x86-64** | + | - Download the **Windows x86-64** 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//; |
| - | * **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. |
| - | * keeping //Register Miniconda3 as my default Python// enabled is normally fine on a fresh computer. | + | |
| - | * Finish the installation. | + | |
| ==== Verify the installation ==== | ==== Verify the installation ==== | ||
| - | Open the Windows Start menu and search for: | + | Open the Windows Start menu and search for **Anaconda Prompt**. |
| - | + | ||
| - | **Anaconda Prompt** | + | |
| - | You should see '' | + | You should see '' |
| Run: | Run: | ||
| Zeile 55: | Zeile 51: | ||
| If both commands print version numbers, Miniconda is installed correctly. | If both commands print version numbers, Miniconda is installed correctly. | ||
| - | ==== Optional: | + | ==== Optional: |
| If you want to use normal PowerShell instead of Anaconda Prompt, run this once from Anaconda Prompt: | If you want to use normal PowerShell instead of Anaconda Prompt, run this once from Anaconda Prompt: | ||
| Zeile 69: | Zeile 65: | ||
| ==== Check which Mac you have ==== | ==== Check which Mac you have ==== | ||
| - | You can check the processor under: | + | Most Macs sold since late 2020 use Apple Silicon. |
| - | **Apple menu -> About This Mac** | + | You can check the processor in **Apple menu -> About This Mac**, |
| - | + | ||
| - | Alternatively, open **Terminal** and run: | + | |
| <code bash> | <code bash> | ||
| Zeile 81: | Zeile 75: | ||
| Possible results: | Possible results: | ||
| - | * '' | + | |
| - | * '' | + | * '' |
| ==== Install Miniconda ==== | ==== Install Miniconda ==== | ||
| - | * Download the appropriate '' | + | - Download the appropriate '' |
| - | * Open it. | + | |
| - | * Follow | + | |
| - | * When installation has finished, close and reopen Terminal. | + | |
| Verify the installation: | Verify the installation: | ||
| Zeile 98: | Zeile 91: | ||
| </ | </ | ||
| - | If '' | + | If '' |
| - | + | ||
| - | If it is still not found, initialize | + | |
| <code bash> | <code bash> | ||
| Zeile 119: | Zeile 110: | ||
| Usually you will see one of these: | Usually you will see one of these: | ||
| - | * '' | + | |
| - | * '' | + | * '' |
| ==== Install Miniconda ==== | ==== Install Miniconda ==== | ||
| - | Download the appropriate '' | + | Download the appropriate '' |
| For a normal Intel/AMD Linux computer: | For a normal Intel/AMD Linux computer: | ||
| Zeile 142: | Zeile 133: | ||
| During installation: | During installation: | ||
| - | * press **Enter** to read the license; | + | - press **Enter** to read the license; |
| - | * type '' | + | |
| - | * press **Enter** to accept the default installation location; | + | |
| - | * answer '' | + | |
| After installation, | After installation, | ||
| - | Alternatively, | + | Alternatively, |
| For Bash: | For Bash: | ||
| Zeile 174: | Zeile 165: | ||
| The following steps are the same on **Windows, macOS, and Linux**. | The following steps are the same on **Windows, macOS, and Linux**. | ||
| - | < | + | **Note: |
| - | It is good practice | + | |
| - | + | ||
| - | Instead, | + | |
| Create an environment named '' | Create an environment named '' | ||
| Zeile 197: | Zeile 185: | ||
| </ | </ | ||
| - | Your command | + | Your terminal |
| < | < | ||
| Zeile 205: | Zeile 193: | ||
| ===== 6. Start JupyterLab ===== | ===== 6. Start JupyterLab ===== | ||
| - | First activate | + | Activate |
| < | < | ||
| Zeile 225: | Zeile 213: | ||
| </ | </ | ||
| - | Then start JupyterLab: | + | Start JupyterLab: |
| < | < | ||
| Zeile 241: | Zeile 229: | ||
| In JupyterLab: | In JupyterLab: | ||
| - | * select | + | - click **File -> New -> Notebook** or select |
| - | * create a new cell; | + | |
| - | * enter: | + | |
| <code python> | <code python> | ||
| Zeile 250: | Zeile 238: | ||
| import sys | import sys | ||
| print(sys.version) | print(sys.version) | ||
| - | print(sys.executable) </ | + | print(sys.executable) |
| - | + | </ | |
| - | Run the cell with: | + | |
| - | **Shift + Enter** | + | Run the cell with **Shift + Enter**. |
| If the output is displayed without an error, the installation is working. | If the output is displayed without an error, the installation is working. | ||
| Zeile 270: | Zeile 257: | ||
| ===== 9. Using Jupyter later ===== | ===== 9. Using Jupyter later ===== | ||
| - | Every time you want to use this environment, open a terminal or Anaconda Prompt and run: | + | Every time you want to use this environment: |
| < | < | ||
| Zeile 291: | Zeile 278: | ||
| </ | </ | ||
| - | For example, to install NumPy, pandas, SciPy, and Matplotlib: | + | For example, to install NumPy, pandas, SciPy, and Matplotlib |
| < | < | ||
| Zeile 302: | Zeile 289: | ||
| python -m pip install PACKAGE_NAME | 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 ===== | ===== 11. Useful conda commands ===== | ||
| Zeile 350: | Zeile 323: | ||
| ==== Jupyter opens in the wrong environment ==== | ==== Jupyter opens in the wrong environment ==== | ||
| - | Make sure that the '' | + | Check that the '' |
| < | < | ||
| Zeile 363: | Zeile 336: | ||
| </ | </ | ||
| - | The displayed path should contain the '' | + | ===== Official documentation |
| - | + | ||
| - | ===== Further information | + | |
| - | + | ||
| - | See the official Miniconda, conda, and Project Jupyter documentation for additional information. | + | |
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||