{"id":275,"hash":"bf767316f94d456a7b805199c8a60ef79c87e644f908d4a9804ea1314f260d7d","pattern":"ModuleNotFoundError: No module named &#39;tools.nnwrap&#39;","full_message":"I tried to install torch using:\n\npip install torch\n\nInstallation started, but after a few seconds I got the error:\n\nfrom tools.nnwrap import generate_wrappers as generate_nn_wrappers\n\nModuleNotFoundError: No module named 'tools.nnwrap'\n\nOS: Windows","ecosystem":"pypi","package_name":"pytorch","package_version":null,"solution":"Anyone who is looking for the solution refer below:\n\nIt seems command to install torch not is working as expected, instead, you can try to install PyTorch using below command.\n\nIt's working and solved my above-mentioned issue.\n\nRun below command(for below-specified OS, package-manager, Language):\n\n# for OS: Windows, package-manager: pip, Language: python3.6 (below command is valid for only mentioned python 3.6)\n\npip3 install https://download.pytorch.org/whl/cu90/torch-1.1.0-cp36-cp36m-win_amd64.whl\npip3 install https://download.pytorch.org/whl/cu90/torchvision-0.3.0-cp36-cp36m-win_amd64.whl\n\nFor another version/type of the software (OS, package, Language) installed, the command must be generated from the below-mentioned link.\n\nhttps://pytorch.org/get-started/locally/\n\nAlso, 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.","confidence":0.95,"source":"stackoverflow","source_url":"https://stackoverflow.com/questions/56859803/modulenotfounderror-no-module-named-tools-nnwrap","votes":106,"created_at":"2026-04-19T04:41:44.168508+00:00","updated_at":"2026-04-19T04:51:56.199827+00:00"}