Cannot Install - Wheel not supported

I have checked all the other posts on this topic saying the same error. I have tried their solutions and none work.

I am using Python 3.8.2 64 bits on Windows 10.

I am attempting to use the wheel “torch-1.4.0+cpu-cp38-cp38-win_amd64.whl”.

I also tried using Python 3.7 and installing the wheel for that one, which gave the same error “…wheel not supported…”.

I also tried using the code given on the chooser portion of this site which gave me a different error “No matching distribution found for torch==1.4.0”.

Please help.


  1. I attempted:
    pip install torch
    *which gave the error: ModuleNotFoundError: No module named ‘tools.nnwrap’

  2. And then I tried:
    pip install torch-1.4.0+cpu-cp38-cp38-win_amd64.whl
    *which gave the error: torch-1.4.0+cpu-cp38-cp38-win_amd64.whl is not a supported wheel on this platform.

Please share the exact commands you used and their result. Thank you.

Edited my response, thanks.

Please try python -m pip install "torch-1.4.0+cpu-cp38-cp38-win_amd64.whl" .

It gave "-m is not recognized as an internal or external command, operable program or batch file.

Which terminal are you using? CMD, powershell, or sth else?

It is python -m pip install "torch-1.4.0+cpu-cp38-cp38-win_amd64.whl" , not -m pip install “torch-1.4.0+cpu-cp38-cp38-win_amd64.whl”.

1 Like

Wow, that worked thanks! Could you explain why that worked when I couldn’t install it using pip nor inside of PyCharm?

pip install torch won’t work because we don’t host Windows wheels on PyPI.

pip install torch doesn’t work because your pip points to a different python environment. You can verify the result using where pip in CMD.