[GH-ISSUE #178] ModuleNotFoundError: No module named 'torch._custom_ops' #139

Closed
opened 2026-10-26 21:12:57 +00:00 by bsakaguchi · 1 comment
Owner

Originally created by @ChrisGitHubIcon on GitHub (Feb 18, 2025).
Original GitHub issue: https://github.com/deepseek-ai/Janus/issues/178

According to requirements.txt, I installed torch as 2.0.1, but it failed as "ModuleNotFoundError: No module named 'torch._custom_ops'".
Seaching from internet, it says torch==2.2.1 will have such module, but again it failed as torchvision version.

Is there anyone having same problem? Or anyone can help? Thanks in advance.

Originally created by @ChrisGitHubIcon on GitHub (Feb 18, 2025). Original GitHub issue: https://github.com/deepseek-ai/Janus/issues/178 According to requirements.txt, I installed torch as 2.0.1, but it failed as "ModuleNotFoundError: No module named 'torch._custom_ops'". Seaching from internet, it says torch==2.2.1 will have such module, but again it failed as torchvision version. Is there anyone having same problem? Or anyone can help? Thanks in advance.
Author
Owner

@ChrisGitHubIcon commented on GitHub (Feb 18, 2025):

By
torch==2.1.0
torchvision==0.16.0
Issue closed.

<!-- gh-comment-id:2664690779 --> @ChrisGitHubIcon commented on GitHub (Feb 18, 2025): By torch==2.1.0 torchvision==0.16.0 Issue closed.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
deepseek-ai/Janus#139
No description provided.