pytorch Segmentation Fault ( Core Dumped )

开发环境:

    PyTorch 0.4.1

    TorchVision 0.2.1 

    face_recognition 1.2.3

现象描述:

    import face_recognition

    import torch  

    运行,报错:Segmentation Fault ( Core Dumped )

原因分析: 
    (1)face_recognition 是由 gcc 4.8.5 编译的

    (2)Pytorch 0.4.1 是由 gcc 4.9.2 编译的

解决方法:由于 PyTorch 0.3.1 是由 gcc 4.8.5 编译的,因此,卸载 pytorch 0.4.1 , 安装 pytorch 0.3.1. OK!

猜你喜欢

转载自blog.csdn.net/yangguangqizhi/article/details/82286949