Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
habrok:software_environment:python [2026/04/07 16:10] – [Quick links] pedrohabrok:software_environment:python [2026/10/23 08:17] (current) – [What is different about Python on the cluster?] Formatting pedro
Line 7: Line 7:
  
 On your own laptop, you might install Python packages directly with ''pip install'' or ''mamba install'' , but on the cluster things work a little differently: On your own laptop, you might install Python packages directly with ''pip install'' or ''mamba install'' , but on the cluster things work a little differently:
- +
   * Python is provided through the **[[habrok:software_environment:module_system|module system]]**, which gives you access to several different versions of Python as well as a number of pre-built, performance-optimised libraries. You should always start by loading a Python module rather than relying on any system Python.   * Python is provided through the **[[habrok:software_environment:module_system|module system]]**, which gives you access to several different versions of Python as well as a number of pre-built, performance-optimised libraries. You should always start by loading a Python module rather than relying on any system Python.
   * You **cannot install packages globally**, instead, you manage your own isolated environments in your personal directories.   * You **cannot install packages globally**, instead, you manage your own isolated environments in your personal directories.
Line 22: Line 22:
 **[[.:python:environments]]**\\ **[[.:python:environments]]**\\
 On the cluster you work in isolated Python environments. This subsection covers the three main tools for creating and managing these environments: On the cluster you work in isolated Python environments. This subsection covers the three main tools for creating and managing these environments:
- +
   * **[[.:python:environments#pip_venv|pip + venv]]** — The standard Python approach. Built into Python itself, no extra installation needed. Recommended for most users who just need to install a set of Python packages.   * **[[.:python:environments#pip_venv|pip + venv]]** — The standard Python approach. Built into Python itself, no extra installation needed. Recommended for most users who just need to install a set of Python packages.
   * **[[.:python:uv|uv]]** — A modern, fast alternative to pip + venv that also handles project management.   * **[[.:python:uv|uv]]** — A modern, fast alternative to pip + venv that also handles project management.