Install Python 32 Bit on 64 Bit Linux

Installing python 32 bit on 64 bit Kubuntu

Why not just use VirtualBox to virtualize a 32 bit Kubuntu whenever you want to develop in 32 bit Python. That way you have the best of both worlds: your 64 bit system for normal use and a 32 bit system that you can fire up whenever you need it for Python development.

Installing multiple pythons inside one system feels messier than simply virtualizing the development system you really want.

How to build 32bit python 2.6 on 64bit Linux?

You'll need to pass the appropriate
flags to gcc and ld to tell the compiler
to compile and produce 32bit binaries.

Use --build and --host.

./configure --help
System types:
--build=BUILD configure for building on BUILD [guessed]
--host=HOST cross-compile to build programs to run on HOST [BUILD]

You need to use ./configure --build=x86_64-pc-linux-gnu --host=i686-pc-linux-gnu to compile for 32-bit Linux in a 64-bit Linux system.

Note: You still need to add the other ./configure options.

Installed Python with 32 bit install, appears as 64 bit

This sounds like you might have multiple instances of Python installed on your machine. Verify that you're calling the correct one by calling it explicitly from its full path, and noting if its still saying 64-bit or 32-bit.

Moving forward, using a virtualenv might simplify any confusion of which python installation, and which installed packages, are being used.



Related Topics



Leave a reply



Submit