How do I compile Python packages with PIP?

Is it possible to cross-compile Python packages using PIP?

I am trying to install several Python packages containing a significant portion of C / C ++ (scipy / numpy / matplotlib / pynacl) on a Raspberry Pi. It takes less than a minute to install these packages on an x86 machine, but because the Pi is so insufficient and there are no precompiled binaries for ARM, it takes a couple of hours for the Pi to compile and install everything.

Do I even need to compile and install these packages into a dedicated virtualenv on an x86 machine, but target the ARM platform and then rsync the virtualenv on the Pi? Both Pi and x86 work with Ubuntu 16.

+3


source to share





All Articles