Python 3.6 can find cairo libs but not Python 2.7

Peter Otten __peter__ at
Fri Jul 13 08:05:04 EDT 2018

D'Arcy Cain wrote:

> On 2018-07-12 07:41 PM, Peter Otten wrote:
>> Wild guess: one Python is 64 bit and the other is 32 bit, and you have
>> only one version of the library installed.
> Nope.  Both are 64 bit.

Just to be 100% sure, what does

$ python2.7 -c 'import struct; print(struct.calcsize("l"))'

$ python3.6 -c 'import struct; print(struct.calcsize("l"))'


If both print 8, what is sys.platform? (This is just that I can look at the 
right branch of the ctypes.util source for differences)?

More information about the Python-list mailing list