I am trying to import a package “torch”.
For same, I tried to install it using pip command as below, installation even started but after few seconds it got error
below is the command that I executed
pip install torch
Error that I got:
from tools.nnwrap import generate_wrappers as generate_nn_wrappers
ModuleNotFoundError: No module named 'tools.nnwrap'
OS: Windows.
IDE : pyCharm
I got the only link related to this issue but I was not able to interpret it.
Kenil Vasani
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):
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/