On Thu, Jul 27, 2017 at 11:13 PM, Michael Barton <[email protected]>
wrote:

> I don't remember the exact wording. I had set up a conda virtual
> environment to force GRASS to compile and run with Anaconda Python and
> wxPython 4. When I launched GRASS (trunk), I got an error message that it
> would only run with a system Python. I thought that is weird.
>
> Anyway, I tried setting GRASS_PYTHON to no avail. See below:
>
>  g.gisenv get=GRASS_PYTHON
> "/Applications/anaconda/bin/python"GRASS 7.3.svn (nc_spm_08_grass7):~ >
> python
> Python 2.7.10 (default, Feb  7 2017, 00:08:15)
> [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)] on darwin
> Type "help", "copyright", "credits" or "license" for more information.
>
> GRASS_PYTHON, is set, but it is still using system Python 2.7.10 instead
> of Anaconda Python 2.7.13
>
>

GRASS_PYTHON is actually an environmental variable (system driven, not by
GRASS) , so you need to use:

export GRASS_PYTHON=/.../python  # set value
echo $GRASS_PYTHON  # get value

g.setenv changes the GRASS (environment) variables (aka "GIS env" or "GRASS
variables").

https://grass.osgeo.org/grass72/manuals/variables.html
https://grass.osgeo.org/grass72/manuals/g.gisenv.html
_______________________________________________
grass-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to