ModuleNotFoundError No module named torch

0 votes

Hi Guys,

I am trying to import the torch module in Jupyter Notebook. But it is showing me the below error.

ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-1-07bc8e0d68bf> in <module>
----> 1 from torch.utils.data.dataloader import numpy_type_map
ModuleNotFoundError: No module named 'torch'

How can I solve this error?

Jun 24, 2020 in Python by akhtar
• 38,230 points
8,600 views

1 answer to this question.

0 votes

Hi@akhtar,

It seems you don't have a torch module installed in your system. You need to install the torch module first in your system. You can use the below command to download the torch library.

$ pip install http://download.pytorch.org/whl/cpu/torch-0.4.0-cp36-cp36m-win_amd64.whl

I hope this will help you. 

answered Jun 24, 2020 by MD
• 95,440 points
In my command promt i can get torch version.

but its not showing in my vscode

Related Questions In Python

+1 vote
3 answers
+2 votes
3 answers

ModuleNotFoundError: No module named 'Crypto'

The module you’ve installed is different. To install ...READ MORE

answered Aug 20, 2019 in Python by Raman
76,812 views
0 votes
2 answers

ModuleNotFoundError: No module named 'pythoncom' in pyttsx3

even i faced the same problem ...just ...READ MORE

answered Jun 2, 2020 in Python by anonymous
12,870 views
0 votes
1 answer

ModuleNotFoundError: No module named 'Foundation'

Hi@akhtar, By default Foundation module comes with Anaconda ...READ MORE

answered Apr 24, 2020 in Python by MD
• 95,440 points
3,547 views
0 votes
2 answers
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 7, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 4,023 views
0 votes
1 answer
+5 votes
6 answers

Lowercase in Python

You can simply the built-in function in ...READ MORE

answered Apr 11, 2018 in Python by hemant
• 5,790 points
3,420 views
+2 votes
3 answers

ModuleNotFoundError: No module named 'cv2'

Hi@akhtar, This error may occur if you didn't install ...READ MORE

answered Apr 9, 2020 in Python by MD
• 95,440 points
265,155 views
+2 votes
2 answers

ModuleNotFoundError: No module named 'pyttsx3

Hi@akhtar, To avoid this error you have to ...READ MORE

answered Apr 24, 2020 in Python by MD
• 95,440 points
27,307 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP