Massive credit & thanks to @matthewfeickert who wrote the shell script to compile Python, as well as everything else in this repo. Ubuntu 18.04 comes with support for many powerful data science utilities and machine learning libraries, with Python 3.7 compiled and ready to go, this is a great sandbox for development and testing data science tools that require Ubuntu 18/Python 3.7.
-
Clone this repo:
git clone https://github.com/simonkeng/ubuntu18python37.git
-
Run the
Makefile
to automate thedocker build
instructions. The image will be built asubuntu18python37
.
$ ls
Dockerfile LICENSE Makefile README.md install_python.sh
$ make
- gcc
- g++
- git
- zlibc
- zlib1g-dev
- libssl-dev
- libbz2-dev
- libsqlite3-dev
- libncurses5-dev
- libgdbm-dev
- libgdbm-compat-dev
- liblzma-dev
- libreadline-dev
- uuid-dev
- libffi-dev
- tk-dev
- wget
- curl
- make
- software-properties-common
- Python 3.7 (3.6)