Skip to content

Instantly share code, notes, and snippets.

@c2t-r
Last active February 2, 2024 14:12
Show Gist options
  • Save c2t-r/b627628e8f02500d93be7553f7d00e8e to your computer and use it in GitHub Desktop.
Save c2t-r/b627628e8f02500d93be7553f7d00e8e to your computer and use it in GitHub Desktop.
How to install wheel on windows

How to install wheel on windows

  1. run this commands on cmd to know supported package
python
>>> from pip._internal.utils.compatibility_tags import get_supported
>>> for i in get_supported(): print(i)
...

// expected output: cp312-cp312-win_amd64, cp312-abi3-win_amd64...

  1. the list output is your supported package
  2. download built distribution from PyPI
  3. run pip install wheel-XX.XX.XX-***-***-***.whl (downloaded distribution)

this might also be the solution for the error with other package something like

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
failed with exit code 2
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for *****
Failed to build plyvel
ERROR: Could not build wheels for *****, which is required to install pyproject.toml-based projects
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment