2 hours ago · Tech · hide · 0 comments

I’ve always been a big fan of installing Python from source. It keeps you close to your environments and understanding exactly where the code comes from and goes to. I feel like in the past it was more difficult, but year after year it seems like it’s getting easier. This year for Ubuntu 26.04 there is a bit of a new step added, but ultimately it is feeling effortless. The whole process takes about 10 or so minutes, and is good for people of all levels to understand. Prep for on a fresh install of Ubuntu 26.04 You may need a C compiler if you haven’t yet downloaded: sudo apt update && sudo apt -y install build-essential New Ubuntu sources need to add ‘deb-src’ There is a new way to get the build-deps for Python on Ubuntu, so you’ll need to edit /etc/apt/sources.list.d/ubuntu.sources and add deb-src to the Types line. sudo vim /etc/apt/sources.list.d/ubuntu.sources Types: deb deb-src Now that has been added you can get build-deps for Python: sudo apt update sudo apt build-dep python3…

No comments yet. Log in to reply on the Fediverse. Comments will appear here.