facebookresearch / pytorch3d

PyTorch3D is FAIR's library of reusable components for deep learning with 3D data
https://pytorch3d.org/
Other
8.81k stars 1.32k forks source link

ImportError: /home/fwj/anaconda3/envs/pyfwj/lib/python3.10/site-packages/pytorch3d/_C.cpython-310-x86_64-linux-gnu.so: undefined symbol: _ZNK3c1010TensorImpl18compute_contiguousEv #1608

Closed spider-fly closed 1 year ago

spider-fly commented 1 year ago

import torch import pytorch3d from pytorch3d import _C Traceback (most recent call last): File "", line 1, in ImportError: /home/fwj/anaconda3/envs/pyfwj/lib/python3.10/site-packages/pytorch3d/_C.cpython-310-x86_64-linux-gnu.so: undefined symbol: _ZNK3c1010TensorImpl18compute_contiguousEv

bottler commented 1 year ago

This looks like the kind of thing which would happen if pytorch3d was built with a different version of pytorch than the one you are using. How did you install?

from pytorch3d import _C is not something the user is expected to do, by the way, so I am not certain that anything is wrong here. What's the actual error and how did you get it?

spider-fly commented 1 year ago

thanks for very much, I have solve the problem by installing new a conda virtual environment ,and according to the md file