When using the torch pycharm installation package, has been given ModuleNotFoundError: No module named 'tools.nnwrap'. Solve the whole morning, abandoned the use of pycharm installation, use pip a dark turn, successfully installed, the record about the solution process:
Open PyTorch official website ( official website ), click on the Get Started , choose the right version, this is my choice
Cmd to open a command prompt, run this command in order to run the system command window (normally there will be a progress bar):
This installed, we can confirm this, print the information we installed:
cmd input pip.exe, then enter pip show torch:
Reference's blog: https://blog.csdn.net/hester_hester/article/details/97498335