No module named 'torch'
- Dominant language
- Jupyter Notebook
- Stars
- 13.3k
- Forks
- 5.8k
- Avg merge
- 6d 11h
- Merged PRs (30d)
- 7
Description
I have installed pytorch in virtual environment. When I am trying to execute import torch from Jupyter notebook I am getting error as below.
```
ModuleNotFoundError Traceback (most recent call last)
in
----> 1 import torch
ModuleNotFoundError: No module named 'torch'
```
But when I am running the same in Using Anaconda command prompt, import torch is successful. I am running Jupyter in windows 64 Anaconda environment
Contributor guide
Research direction
No repository file, test, or entry point is mentioned. Start by reproducing the import failure in a Windows 64-bit Anaconda environment, comparing the Jupyter kernel with the environment where the import succeeds. Done would be a confirmed project-related cause and an actionable resolution.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- anaconda, jupyter-notebook, python, pytorch
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100