Reputation: 457
I'm trying to install Cairo (a 2D graphics library). I've not used any .whl
before (at least not manually) and I don't understand the error message I'm getting. I downloaded pycairo-1.18.2-cp38-cp38-win32.whl
and tried to pip3 install
it but I get the following error:
ERROR: pycairo-1.18.2-cp38-cp38-win32.whl is not a supported wheel on this platform.
As far as I know I have the correct version of the wheel since my Python is
Python 3.8.0 (tags/v3.8.0:fa919fd, Oct 14 2019, 19:21:23) [MSC v.1916 32 bit (Intel)] on win32
The command I used to get this error was
pip3 install [full path to the .whl file in my Downloads]
Any ideas what I might be doing wrong here? Here's where I downloaded the wheel file from. (There are other options too but I believe I got the correct one.)
EDIT1:
Installing Pycairo requires pkg-config and cairo including its headers.
Now looking into how to get those...
Upvotes: 6
Views: 6790
Reputation: 22295
Update:
With recent versions of pip, one can call path/to/pythonX.Y -m pip debug --verbose
and it should print the list of compatible tags (among other things) for that Python interpreter.
How do I know why a wheel is not supported on a platform?
Some technical details regarding the Python wheel tags:
packaging.tags
Assuming you have the project packaging installed, you can get the list of all wheel tags that are supported by your environment with the following:
python3 -c "import packaging.tags; print(list(packaging.tags.sys_tags()))"
Upvotes: 9