When installing pytorch in-lightning, be sure to pay attention to whether your torch is installed with pip or conda< /span>, the installation method of pytorch_lightning must be consistent with the installation method of torch, otherwise your torch version will be replaced.
Correct installation method:
pip method:
pip install pytorch-lightning==version name
conda method (conda does not need to specify a version number)
conda install pytorch-lightning -c conda-forge