import pytorch_lightning出现Segmentation fault (core dumped)

question

Appears after import pytorch_lightning

Segmentation fault (core dumped)

Solution

import pytorch_lightning is incompatible with protobuf v3.19.*, and the version needs to be lowered to 3.18.1.

Install the specified version of protobuf

pip install protobuf==3.18.1

reference

https://discuss.pytorch.org/t/seg-fault-with-pytorch-lightning/140973

Guess you like

Origin blog.csdn.net/icylling/article/details/129284881