[Python-Dev] Python 32- and 64-bit living together (original) (raw)

"Martin v. Löwis" martin at v.loewis.de
Fri Apr 11 23:58:37 CEST 2008


My question is simple:

It's also off-topic for python-dev, which is about the development of Python, not the development with Python.

is there any problem when installing/using both 32- and 64-bit Python's on the same machine? I'm more concerned about header files (those installed under /usr/include/python-2.x), because as far as I could see there's nothing similar to a "#ifdef USE64BIT" or something on them.

You can't install them both into the same prefix (obviously, as they would overwrite their binary files).

With two installation, use the header files you got from the 32-bit install for 32-bit extensions/embedding, and the header files you got from the 64-bit install for 64-bit extensions/embedding. The only header file that will actually differ is pyconfig.h.

Regards, Martin



More information about the Python-Dev mailing list