Copying a compiled Python from one system to another

Grant Edwards grant.b.edwards at gmail.com
Sat Oct 1 10:01:26 EDT 2016


On 2016-10-01, Steve D'Aprano <steve+python at pearwood.info> wrote:

> Long story short: I have no working systems capable of compiling the
> latest Python 3.6, and no time to upgrade my usual machines to
> something which will work.
>
> However I do have access to another machine (actually a VM) which can
> compile Python 3.6. It's not practical for me to use it as a my main
> development machine, but as a temporary measure, I thought I could compile
> 3.6 on this VM, then copy the python binary to my usual desktop machine.

You'll probably need to copy more than just the binary.

> What sort of challenges am I likely to find?

Missing or incompatible libraries.  Wrong CPU type.

> Both machines are Linux, but different distros.

If they were the same distros, you'd have a much better chance. Then,
the right way to do it would be to build a binary package (.rpm, .deb,
.whatever) on one machine for installation on the other machine using
the normal package manager.  That way the library situation would get
verified (if perhaps not remedied).

-- 
Grant






More information about the Python-list mailing list