Installing Anaconda Python - no such file or directory
#1
Tue, 2015-06-30 15:34
rothnic
-
- Offline
- 2 years 8 months ago
- 2015-06-30
I'm building a docker image using alpine linux and Anaconda. I get the following error from the anaconda install script, but the file does exist
miniconda.sh: line 266: /miniconda/pkgs/python-2.7.9-3/bin/python: No such file or directory ERROR: cannot execute native linux-64 binary, output from 'uname -a' is: Linux bb29f5eca5c9 4.0.5-boot2docker #1 SMP Tue Jun 16 01:39:56 UTC 2015 x86_64 Linux
The installer comes from here: http://conda.pydata.org/miniconda.html. The docker file is contained here: https://github.com/rothnic/docker/tree/master/conda/2.7
From the few cases i've seen that are somewhat similar, it seems this corresponds to some kind of compiler mismatch?
That installer has a header (bash script) and a tarball appended to it.
The tarball includes various pre-compilated packages (phyton, openssl, sqlite etc.)
Those packages contains binaries compiled against glibc so they don't work with musl.
Yeah, I've realized now all minimal linux distros targeted at docker use musl now. I've now moved to using pyenv, virtualenv, and building wheels.