Member-only story

Upgrade to Python 3.8 on a Chromebook

Matt Gosden
2 min readFeb 16, 2020

--

How to get up and running with Python 3.8 on your Chromebook in under 10 minutes.

Step 1— Install Python 3.8 prerequisites

From the Linux terminal app on the Chromebook:

sudo apt-get updatesudo apt-get install build-essentialsudo apt-get install libreadline-gplv2-dev libncursesw5-dev \
libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev
sudo apt-get install libffi-dev liblzma-dev

Step 2— Download and extract Python 3.8 source

Note — If you want to use a later version just replace the version number (3.8.1) in all the next steps with the latest version number

cd /usr/srcsudo wget https://www.python.org/ftp/python/3.8.1/Python-3.8.1.tgzsudo tar xzf Python-3.8.1.tgz

Step 3— Compile and install Python 3.8

cd Python-3.8.1sudo ./configure --enable-optimizationssudo make altinstall

Notes — The altinstall option leaves the original Python untouched.

That’s it. You can now test the installation with:

python3.8

What else might you need?

--

--

Matt Gosden
Matt Gosden

Written by Matt Gosden

Insurance meets tech meets music. #fintech #AI

Responses (4)