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

There is a problem:cannot import name '_C' from 'pytorch3d' #1876

Open FWatson-77 opened 1 month ago

FWatson-77 commented 1 month ago

import torch import pytorch3d from pytorch3d import _C Traceback (most recent call last): File "", line 1, in ImportError: cannot import name 'C' from 'pytorch3d' (/lxy02/GenPose-main/GenPose-main/pytorch3d/init.py)

FWatson-77 commented 1 month ago

I followed these command lines to complete the download: git clone https://github.com/facebookresearch/pytorch3d.git cd pytorch3d git checkout -f v0.7.2 pip install -e .

But after downloading, the above problems occurred

bottler commented 1 month ago

Please give us more details about your environment (e.g. conda list and pip list). It is important that nothing changes between the build (e.g. the pip install -e .) and the attempt to run. For example, the versions of cuda and PyTorch, which need to be working before the build is performed, must be exactly the same. This error usually reflects something about these which has changed.

jez-moxmo commented 1 month ago

this repo needs some serious work there are countless people with version issues and installation issues.

bottler commented 1 month ago

@jez-moxmo Many people use PyTorch3D successfully, and I think the installation instructions for /supported/ platforms are easy to follow. Some other people want to use the library in unsupported ways, either deliberately or not, and they in particular might need help, and sometimes will get it. That's not itself a sign of a problem. Do you have an issue you need help with?