Install with pip¶
pip install pytorch-lightning
Install with Conda¶
conda install pytorch-lightning -c conda-forge
You can also use Conda Environments:
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.
pip install https://github.com/PyTorchLightning/pytorch-lightning/archive/master.zip
Install future patch releases from the source. Note that the patch release contains only the bug fixes for the recent major release.
pip install https://github.com/PyTorchLightning/pytorch-lightning/archive/refs/heads/release/1.5.x.zip