This repository creates GNU/Linux Docker images with a specific Python version using PyEnv. Current tested base images include Ubuntu 20.04, CentOS 7 and openSUSE 15.3.
The images provide the following libraries:
- GCC and GFortran.
- BLAS and LAPACK.
- HDF4, HDF5 and NetCDF4.
- PyEnv with one specific Python version preinstalled.
- Latest available working versions of
pip
,wheel
andsetuptools
. - Latest available working versions of
numpy
,scipy
andcython
.
Below there is a summary table with the preinstalled packages:
Version | Py2.6 | Py2.7 | Py3.2 | Py3.3 | Py3.4 | Py3.5 | Py3.6 | Py3.7+ |
---|---|---|---|---|---|---|---|---|
pip | <10 | <21 | <7.1.1 | <18 | <20 | <21 | <21 | <21 |
setuptools | <37 | <45 | <30 | <40 | <44 | <50 | <50 | <50 |
wheel | <0.30 | <0.36 | <0.32 | <0.30 | <0.34 | <0.36 | <0.36 | <0.36 |
numpy | <1.12 | <1.17 | <1.12 | <1.12 | <1.17 | <1.19 | <1.20 | <1.21 |
scipy | <0.18 | <1.3 | <0.18 | <1.0 | <1.3 | <1.5 | <1.6 | <1.7 |
cython | <3.0 | <3.0 | <0.27 | <3.0 | <3.0 | <3.1 | <3.1 | <3.1 |
-
Install Docker.
-
Download the automated build from the public Docker Hub Registry located at molinav/pyenv.
Given a Python version X.Y
:
docker run --rm -it molinav/pyenv:X.Y-ubuntu-20.04
docker run --rm -it molinav/pyenv:X.Y-centos-7
docker run --rm -it molinav/pyenv:X.Y-opensuse-15.3
If not running interactively, you must configure the shell manually by calling
. /etc/profile
which will activate PyEnv and configure the shell to use the preinstalled Python version.