2022-04-19 18:15:47 +00:00
|
|
|
:orphan:
|
|
|
|
|
2022-01-13 21:11:43 +00:00
|
|
|
.. _installation:
|
|
|
|
|
|
|
|
############
|
|
|
|
Installation
|
|
|
|
############
|
|
|
|
|
|
|
|
--------------
|
|
|
|
|
2022-04-27 17:08:13 +00:00
|
|
|
****************
|
|
|
|
Install with pip
|
|
|
|
****************
|
2022-01-13 21:11:43 +00:00
|
|
|
|
|
|
|
Install any supported version of PyTorch if you want from `PyTorch Installation Page <https://pytorch.org/get-started/locally/#start-locally>`_.
|
|
|
|
Now you can install using `pip <https://pypi.org/project/pytorch-lightning/>`_ using the following command:
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
|
|
pip install pytorch-lightning
|
|
|
|
|
2022-08-23 17:31:18 +00:00
|
|
|
Or read the `Apple Silicon Macs installation article <installation_mac.rst>`_.
|
|
|
|
|
2022-01-13 21:11:43 +00:00
|
|
|
--------------
|
|
|
|
|
2022-04-27 17:08:13 +00:00
|
|
|
******************
|
|
|
|
Install with Conda
|
|
|
|
******************
|
2022-01-13 21:11:43 +00:00
|
|
|
|
|
|
|
If you don't have conda installed, follow the `Conda Installation Guide <https://docs.conda.io/projects/conda/en/latest/user-guide/install>`_.
|
|
|
|
Lightning can be installed with `conda <https://anaconda.org/conda-forge/pytorch-lightning>`_ using the following command:
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
|
|
conda install pytorch-lightning -c conda-forge
|
|
|
|
|
|
|
|
You can also use `Conda Environments <https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html>`_:
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
|
|
conda activate my_env
|
|
|
|
conda install pytorch-lightning -c conda-forge
|
|
|
|
|
|
|
|
--------------
|
|
|
|
|
2022-04-27 17:08:13 +00:00
|
|
|
*****************
|
|
|
|
Build from Source
|
|
|
|
*****************
|
2022-01-13 21:11:43 +00:00
|
|
|
|
2022-03-01 11:19:44 +00:00
|
|
|
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.
|
2022-01-13 21:11:43 +00:00
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
2022-07-28 20:08:07 +00:00
|
|
|
pip install https://github.com/Lightning-AI/lightning/archive/refs/heads/master.zip -U
|
2022-01-13 21:11:43 +00:00
|
|
|
|
2022-03-01 11:19:44 +00:00
|
|
|
Install future patch releases from the source. Note that the patch release contains only the bug fixes for the recent major release.
|
2022-01-13 21:11:43 +00:00
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
2022-07-28 20:08:07 +00:00
|
|
|
pip install https://github.com/Lightning-AI/lightning/archive/refs/heads/release/pytorch.zip -U
|