:orphan: .. _installation: ############ Installation ############ -------------- **************** Install with pip **************** Install any supported version of PyTorch if you want from `PyTorch Installation Page `_. Now you can install using `pip `_ using the following command: .. code-block:: bash pip install pytorch-lightning Or read the `Apple Silicon Macs installation article `_. -------------- ****************** Install with Conda ****************** If you don't have conda installed, follow the `Conda Installation Guide `_. Lightning can be installed with `conda `_ using the following command: .. code-block:: bash conda install pytorch-lightning -c conda-forge You can also use `Conda Environments `_: .. code-block:: bash conda activate my_env conda install pytorch-lightning -c conda-forge -------------- ***************** Build from Source ***************** Install nightly from the source. Note that it contains all the bug fixes and newly released features that are not published yet. This is the bleeding edge, so use it at your own discretion. .. code-block:: bash pip install https://github.com/Lightning-AI/lightning/archive/refs/heads/master.zip -U Install future patch releases from the source. Note that the patch release contains only the bug fixes for the recent major release. .. code-block:: bash pip install https://github.com/Lightning-AI/lightning/archive/refs/heads/release/pytorch.zip -U