Back to News
Advertisement
Advertisement

⚡ Community Insights

Discussion Sentiment

100% Positive

Analyzed from 245 words in the discussion.

Trending Topics

#python#version#deadsnakes#easy#install#doing#before#ubuntu#ppa#flow

Discussion (6 Comments)Read Original on HackerNews

cjfd2 minutes ago
Sure, it is quite easy to install python from source. Usually I am doing it because I need older version for work projects. Of course, the other thing that one needs in that kind of situations is virtual environments. This makes it also quite easy to ensure that you always run the correct python. Create a venv with a specific version of python and once you are in that venv, the 'python' command will automatically run that python version. That way it is easy to use an unlimited number of python version next to each other.
supriyo-biswas6 minutes ago
In the age of uv (and pipenv before that), should we even go through the trouble of building Python manually?
dtnm17 minutes ago
Looks very straightforward. I guess you need to rebuild for every upgrade?
ddxv6 days ago
Just sharing this, I was doing my routine this morning with a couple new VMs and was thinking how much I like building my Python environments from source.

Just wanted to share for anyone and show that it has certainly gotten easier over the years (though this year Ubuntu 26.04 did add a new step).

akulbe6 days ago
Hey, I've done this before. It wasn't until after I went through that process that I learned about the Deadsnakes PPA.

You can add this PPA (personal package archive) to your Ubuntu install. Then you can use apt to do the install of the newer version.

https://launchpad.net/~deadsnakes/+archive/ubuntu/ppa

Just another alternative method, and potentially easier/faster.

ddxv6 days ago
Yes! I used to use deadsnakes before as well. This is just my flow that I enjoy doing the most and wanted to share. The deadsnakes flow is less steps and you get the benefit of updates. So it's probably even better for most people.

I just like the flow where I know which version I'm on, and exactly the steps I took to get there. =D