Skip to content

Article: Installing Python3.8 with Linuxbrew #5

@jhermann

Description

@jhermann

Linuxbrew: https://docs.brew.sh/Homebrew-on-Linux

List available Python variants

brew search python | xargs -l1 echo | grep @

Install a specific Python version

version=3.8
brew install python@$version
ln -nfs /home/linuxbrew/.linuxbrew/opt/python@$version/bin/py*$version ~/.local/bin/
python$version -m site
python$version -m pip install --user -U pip setuptools wheel
# To make this the default one
ln -nfs python$version ~/.local/bin/python${version%%.*}

Limited choices: 2.7.17, 3.7.6, 3.8.1 (Feb 2020)

Can do brew install pyenv and then use pyenv for other versions.

$ pyenv install -l | egrep -v '[a-z]' | sort -r | uniq -w5 | egrep -v '2\.[0-6]|3\.[0-4]\.'

Metadata

Metadata

Assignees

Labels

IdeaArticle pitches

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions