问题
import pytorch_lightning后出现
Segmentation fault (core dumped)
解决方法
import pytorch_lightning与protobuf v3.19.*不兼容,需要降低版本到3.18.1。
安装指定版本的protobuf
pip install protobuf==3.18.1
参考
https://discuss.pytorch.org/t/seg-fault-with-pytorch-lightning/140973