[GRASS-user] Using grass libraries in python outside of GRASS

Markus Neteler neteler at osgeo.org
Tue Jul 28 11:54:04 PDT 2020


Hi Ellen,

On Tue, Jul 28, 2020 at 8:49 PM DAmico, Ellen <DAmico.Ellen at epa.gov> wrote:
>
> Hi,
>
> I may be missing something very simple here.  Is there a way to access the GRASS python libraries outside of the GRASS GUI without calling python through GRASS.  I built  a python environment (in Anaconda) that is setup with other libraries that are required for a model I need to run.  I would like to be able to call the GRASS libraries in that custom environment.

Please take a look at

Python: GRASS GIS 7 with an external library: grass-session
https://grasswiki.osgeo.org/wiki/Working_with_GRASS_without_starting_it_explicitly#Python:_GRASS_GIS_7_with_an_external_library:_grass-session

This is probably the easiest way.

Best,
Markus

-- 
Markus Neteler, PhD
https://www.mundialis.de - free data with free software
https://grass.osgeo.org
https://courses.neteler.org/blog


More information about the grass-user mailing list