[Qgis-user] QGIS through conda on Linux

Johannes Kröger (WhereGroup) johannes.kroeger at wheregroup.com
Mon Feb 26 05:21:35 PST 2024


Don't feel dumb, it is all written and spread out in super complicated 
ways but once running, it's alright-ish.

Normal Miniforge3 should be fine unless you know you want pypy.
Unless you know differently, try the "Miniforge3-Linux-x86_64" version.
Mamba is something hidden in the background, for you it will pretend to 
be Conda. Conda is the original project, mamba is a faster, compatible 
alternative.
Miniforge is something that comes with mamba "as conda" and 
automatically uses the big "conda-forge" repository where lots of 
software and libraries are available, packaged by the community.

You can use the command lines from 
https://github.com/conda-forge/miniforge?tab=readme-ov-file#install

After installation I recommend: $ conda config --set auto_activate_base 
false
Otherwise every terminal/shell session will run using a conda 
environment instead of your standard system environment.

Once installed, you can use the "create" line from other previous mail 
to install a QGIS environment. Then "conda activate qgis_3.34" to 
activate it in a terminal session, "qgis" in that same terminal to 
launch that QGIS and just close the terminal or enter "conda deactivate" 
to deactivate it again.

Cheers, Hannes


On 26.02.24 13:41, Bernd Vogelgesang wrote:
> Hi Hannes,
>
> Thanks for you answer. I played around before with those snakes and 
> that's what maybe brought me into trouble.
>
> And again, this zoo of species starts to confuse me, starting with the 
> installer:
> Miniforge3 or Miniforge-pypy3 ?
> And when does the mamba come into play instead of the conda?
>
> Sorry for me playing the dumb, but I almost spent a week trying to get 
> things back to normal here at my desk.
>
> Cheers,
> Bernd
>
> Am 26.02.24 um 12:35 schrieb Johannes Kröger (WhereGroup):
>> Hi Bernd,
>>
>> a pragmatic solution which I have grown to like is using conda 
>> environments. Using mamba instead of the default conda via 
>> https://github.com/conda-forge/miniforge to reduce annoyances and 
>> then it is for example a simple "conda --create qgis_3.34 qgis=3.34" 
>> to get a nicely isolated QGIS 3.34 with pdal etc.
>>
>> Just make sure to deactivate the base environment in your 
>> terminal/shell, otherwise you are trading one potential mess for 
>> another ;)
>>
>> Cheers, Hannes
>>
>> On 26.02.24 12:10, Bernd Vogelgesang via QGIS-User wrote:
>>> Hi,
>>> using QGIS on the "normal" ubuntu-based Linux Mint for years, I 
>>> again managed to render my system unusable by playing around too 
>>> much, resulting in ever crashing QGIS so I even had to reactivate a 
>>> Windows Virtual Box to be able to work!!
>>>
>>> After a hell of problems with NVIDIA graphics drivers (opencl 
>>> support in QGIS), I finally managed to get everything to work with 
>>> Linux Mint Debian edition ... but now had to learn that Debian does 
>>> not provide PDAL for point cloud stuff in the repositories.
>>>
>>> Long story short: Can anyone give me recommendations how to get PDAL 
>>> working with QGIS that do NOT include building PDAL and QGIS by myself?
>>> Though I USE Linux for over 15 years,I would prefer avoiding that.
>>> Fumbling around with too less insight on what I am actually doing 
>>> just led me here...
>>>
>>> Cheers,
>>> Bernd
>>>
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> QGIS-User mailing list
>>> QGIS-User at lists.osgeo.org
>>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>
>
-- 
Johannes Kröger / GIS-Entwickler/-Berater

*********************************************
FOSSGIS Konferenz
20.-23. März 2024 in Hamburg
https://www.fossgis-konferenz.de/2024/

WhereGroup-Beiträge auf der FOSSGIS
https://wheregroup.com/unternehmen/aktuelles/
*********************************************

WhereGroup GmbH
c/o KK03 GmbH
Lange Reihe 29
20099 Hamburg
Germany

Tel: +49 (0)228 / 90 90 38 - 36
Fax: +49 (0)228 / 90 90 38 - 11

johannes.kroeger at wheregroup.com
www.wheregroup.com
Geschäftsführer:
Olaf Knopp, Peter Stamm
Amtsgericht Bonn, HRB 9885
-------------------------------



More information about the QGIS-User mailing list