Re: [gdal-dev] question about python installation

2023-03-08 Thread Greg Troxel
Michael Sumner writes: > I've been trying with PYTHONPATH and sys.path, and I think I was doing it > wrong ... but the simplicity of the /usr prefix had not occurred to me, > I'll be doing that. > > If I come back around with further insights I'll share them, but this is > working for me now. >

Re: [gdal-dev] question about python installation

2023-03-07 Thread Michael Sumner
Ah, awesome - thanks as ever for such great detail. I've been trying with PYTHONPATH and sys.path, and I think I was doing it wrong ... but the simplicity of the /usr prefix had not occurred to me, I'll be doing that. If I come back around with further insights I'll share them, but this is work

Re: [gdal-dev] question about python installation

2023-03-07 Thread Even Rouault
Michael, My experience is that understanding how and where to install Python stuff is utterly difficult. And this is even more complicated on Debian/Ubuntu that have many patches regarding sys.path and distutils, plus the fact that distutils is deprecated and going to be removed in Python 3.1

[gdal-dev] question about python installation

2023-03-07 Thread Michael Sumner
Hello, apologies as this is not so much a GDAL but a python question, but I'm interested in what others do, hopefully I'm missing a key step that's not hacky :) I made a gist to record the details: https://gist.github.com/mdsumner/526af876cfddaa5ff245ab376b3cec84 The crux is, GDAL has placed th