Skip to content
Advertisement

ModuleNotFoundError: No module named ‘tools.nnwrap’

I tried to install torch using:

JavaScript

Installation started, but after a few seconds I got the error:

JavaScript

OS: Windows

Advertisement

Answer

Anyone who is looking for the solution refer below:

It seems command to install torch not is working as expected, instead, you can try to install PyTorch using below command.

It’s working and solved my above-mentioned issue.

Run below command(for below-specified OS, package-manager, Language):

JavaScript

For another version/type of the software (OS, package, Language) installed, the command must be generated from the below-mentioned link.

https://pytorch.org/get-started/locally/

Also, look for the Python version in your IDE(If you are using PyCharm) from the terminal using the command: python. If it returns 32bit this could happen, instead install Python 64-bit.

Advertisement