-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
ImportError: cannot import name '_C' from 'pytorch3d' (Installation Error) #1013
Comments
Something strange has happened. The output of If pytorch3d is the one you built, then I wonder if there's a cuda version mismatch. What's the output of |
@bottler output of pip3 list:
output of nvcc --version:
|
You have CUDA version 10.1 but cudatoolkit 10.2 in the environment. |
I have downgraded the CUDA version to 10.1 as mentioned and accordingly changed the compatible pytorch, torchvision versions too but again it's throwing the same error. Command I ran:
Build was successful but getting same error. Output of conda list for your reference.
|
Do you get the same error if you |
No
|
Oh. I see the location - I think this is a path issue. You have installed pytorch3d in the conda environment, but you are starting python while inside the source code directory of pytorch3d. This means it is looking for the build artifact in the source tree instead of the pytorch3d tree of the conda environment. Can you move to a different directory and try again, e.g. |
okay okay. Got it. Thanks. It worked. |
Hi bottler, since you mentioned this, I had a similar issue. When I execute "from pytorch3d import _C", it says "ImportError: DLL load failed while importing _C: The specified module could not be found". But if I "import torch" before importing _C, it is fine. Any idea of why this is happening? Thank you. |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as resolved.
This comment was marked as resolved.
将pytorch3d 改名再测试_1 、跟conda 下的pytorch3d冲突造成的 |
Installation issue from a local clone. I installed as mentioned here.
The build was successful but got errors in execution.
Instructions To Reproduce the Issue:
git diff
) or code you wroteCould you please help me to resolve this? Thanks in advance.
The text was updated successfully, but these errors were encountered: