Flat Earth Catalogue

2022-07-19

Hard-won python installation

 Needed a newer Python than my package manager could provide

mkdir ~/.localpython

mkdir ~/src # and into it download the source .tgz

go there and tar -zxvf it

go inside and ./configure --enable-optimizations --prefix=$HOME/.localpython

make

make install

Then when you use venv to set up environment for something, run it with the particular python version you want to use there.

It's obnoxious that "which version of python this venv uses" cannot be handled on a par with which versions of libraries and stuff. 

As an alternative to the whole above, install homebrew, which is an aftermarket package manager, then use that to get whatever python you are after, and so on.


22:10

Powered by Blogger

 

(K) 2002-present. All rights reversed, except as noted.

Hard-won technical knowledge, old rants, and broken links from 10 years ago. I should not have to explain this in the 21st century, but no, I do not actually believe the world is flat.

Past
current