python: symbol lookup error

 

还是说一下环境吧:

ubuntu16.04, cuda9.0,cudnn7.0,anaconda3.6,Python2.7,pytorch1.0.1

报错显示

python: symbol lookup error: /home/pc314/anaconda3/envs/py27/lib/python2.7/site-packages/torch/lib/libtorch_python.so: undefined symbol: _Z11libshm_initPKc

这个好像是pytorch出现了问题:

然后想着直接卸载pytorch,然后在次安装不就行吗,但是不行,需要卸载libtorch-gpu

conda uninstall libtorch-gpu

然后卸载 pytorch

pip uninstall torch

然后参考pytorch 官网给的安装

pip install torch torchvision

 

你可能感兴趣的:(pytorch)