Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
FWatson-77 opened this issue Sep 22, 2024 · 2 comments
Open

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

FWatson-77 opened this issue Sep 22, 2024 · 2 comments

Comments

@FWatson-77
Copy link

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
Copy link
Author

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
Copy link
Contributor

bottler commented Sep 22, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants