From 57f05741d16b5e3bb0840dbabac17cdbc561ff19 Mon Sep 17 00:00:00 2001 From: Daniel Gustaw Date: Sun, 3 Sep 2023 11:41:52 +0200 Subject: [PATCH] Ubuntu dependencies --- README.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7badb74..384f921 100644 --- a/README.md +++ b/README.md @@ -29,9 +29,25 @@ Check [asdf](https://github.com/asdf-vm/asdf) readme for instructions on how to Please make sure you have the required [system dependencies](https://github.com/pyenv/pyenv/wiki#suggested-build-environment) installed before trying to install Python. Under the hood, asdf-python uses [python-build](https://github.com/yyuu/pyenv/tree/master/plugins/python-build) -to build and install Python, check its [README](https://github.com/yyuu/pyenv/tree/master/plugins/python-build) +To build and install Python, check its [README](https://github.com/yyuu/pyenv/tree/master/plugins/python-build) for more information about build options and the [common build problems](https://github.com/pyenv/pyenv/wiki/Common-build-problems) wiki page for any issues encountered during installation of python versions. +## Ubuntu + +For Ubuntu 20 and 22 + +``` +sudo apt-get update; sudo apt-get install make build-essential libssl-dev zlib1g-dev \ +libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm \ +libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev +``` + +then + +``` +asdf install python latest +``` + ## Using multiple versions of Python A common request for Python is being able to use the `python2` and `python3` commands without needing to switch version.