<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Tried that and it seems to be ignored too. Here is the output from a terminal in the shell (outside GRASS):
<div class=""><br class="">
</div>
<div class="">Last login: Thu Jul 27 22:04:37 on ttys001<br class="">
CMB-MacBook-Pro:~ cmbarton$ echo $GRASS_PYTHON <br class="">
/Applications/anaconda/bin/python<br class="">
<br class="">
This should make anaconda python (2.7.13) the default.</div>
<div class=""><br class="">
</div>
<div class="">But here is the output from a GRASS terminal:</div>
<div class=""><br class="">
</div>
<div class="">GRASS 7.3.svn (nc_spm_08_grass7):~ > echo $GRASS_PYTHON <br class="">
python<br class="">
GRASS 7.3.svn (nc_spm_08_grass7):~ > python<br class="">
Python 2.7.10 (default, Feb  7 2017, 00:08:15) <br class="">
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)] on darwin<br class="">
Type "help", "copyright", "credits" or "license" for more information.<br class="">
>>> </div>
<div class=""><br class="">
</div>
<div class="">Also:</div>
<div class=""><br class="">
</div>
<div class="">GRASS 7.3.svn (nc_spm_08_grass7):~ > echo $GRASS_PYTHONWX<br class="">
/usr/bin/pythonw2.7</div>
<div class=""><br class="">
</div>
<div class="">This environmental variable is set inside GRASS somewhere. It does not show up in the shell outside GRASS.<br class="">
<br class="">
It GRASS ignoring the environmental variable setting for some reason. Is there something hardwired in that insists on looking for Python in /usr/bin?</div>
<div class=""><br class="">
</div>
<div class="">Michael<br class="">
<div class="">
<div style="text-align: start; text-indent: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="text-align: start; text-indent: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="orphans: 2; text-align: -webkit-auto; text-indent: 0px; widows: 2; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px;">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<span class="Apple-style-span" style="border-collapse: separate; orphans: 2; text-indent: 0px; widows: 2; border-spacing: 0px;">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<span class="Apple-style-span" style="border-collapse: separate; orphans: 2; text-indent: 0px; widows: 2; border-spacing: 0px;">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<span class="Apple-style-span" style="border-collapse: separate; orphans: 2; text-indent: 0px; widows: 2; border-spacing: 0px;">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<span class="Apple-style-span" style="border-collapse: separate; orphans: 2; text-indent: 0px; widows: 2; border-spacing: 0px;">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<span class="Apple-style-span" style="border-collapse: separate; orphans: 2; text-indent: 0px; widows: 2; border-spacing: 0px;">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<span class="Apple-style-span" style="border-collapse: separate; orphans: 2; text-indent: 0px; widows: 2; border-spacing: 0px;">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<span class="Apple-style-span" style="border-collapse: separate; orphans: 2; text-indent: 0px; widows: 2; border-spacing: 0px;">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div class="">
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;" class="">
____________________</div>
<div style="letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-variant-ligatures: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-position: normal; line-height: normal;" class="">
<font face="Helvetica" size="3" class="">C. Michael Barton</font></div>
<div style="letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-variant-ligatures: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-position: normal; line-height: normal;" class="">
<font face="Helvetica" size="3" class="">Director, Center for Social Dynamics & Complexity </font></div>
<div style="letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-variant-ligatures: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-position: normal; line-height: normal;" class="">
<font face="Helvetica" size="3" class="">Professor of Anthropology, School of Human Evolution & Social Change</font></div>
<div style="letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<font face="Helvetica" size="3" class="">Head, Graduate Faculty in Complex Adaptive Systems Science</font></div>
<div style="letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-variant-ligatures: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-position: normal; line-height: normal;" class="">
<font face="Helvetica" size="3" class="">Arizona State University</font></div>
<div style="letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-position: normal; font-weight: normal; line-height: normal; -webkit-text-decorations-in-effect: none;" class="">
<br class="">
</div>
<font face="Helvetica" size="3" style="letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><font class="">voice:  </font><font class="">480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)</font><br class="">
<font class="">fax: 480-965-7671 (SHESC),  480-727-0709 (CSDC)</font><br class="">
</font>
<div style="letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-variant-ligatures: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-position: normal; line-height: normal;" class="">
<font face="Helvetica" size="3" class="">www: <a href="http://www.public.asu.edu/~cmbarton" class="">
http://www.public.asu.edu/~cmbarton</a>, <a href="http://csdc.asu.edu" class="">http://csdc.asu.edu</a></font></div>
<br class="">
</div>
<br class="">
</div>
</span><br class="Apple-interchange-newline">
</div>
</span><br class="Apple-interchange-newline">
</div>
</span><br class="Apple-interchange-newline">
</div>
</span><br class="Apple-interchange-newline">
</div>
</span><br class="Apple-interchange-newline">
</div>
</span><br class="Apple-interchange-newline">
</div>
</span><br class="Apple-interchange-newline">
</div>
</span><br class="Apple-interchange-newline">
</div>
<br class="Apple-interchange-newline">
</div>
<br class="Apple-interchange-newline">
</div>
<br class="Apple-interchange-newline">
<br class="Apple-interchange-newline">
</div>
<br class="">
<div>
<blockquote type="cite" class="">
<div class="">On Jul 27, 2017, at 9:43 PM, Vaclav Petras <<a href="mailto:wenzeslaus@gmail.com" class="">wenzeslaus@gmail.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class=""><br class="">
<div class="gmail_extra"><br class="">
<div class="gmail_quote">On Thu, Jul 27, 2017 at 11:13 PM, Michael Barton <span dir="ltr" class="">
<<a href="mailto:Michael.Barton@asu.edu" target="_blank" class="">Michael.Barton@asu.edu</a>></span> wrote:<br class="">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div style="overflow-wrap: break-word;" class="">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. 
<div class=""><br class="">
</div>
<div class="">Anyway, I tried setting GRASS_PYTHON to no avail. See below:</div>
<div class=""><br class="">
</div>
<div class=""> g.gisenv get=GRASS_PYTHON<br class="">
"/Applications/anaconda/bin/<wbr class="">python"GRASS 7.3.svn (nc_spm_08_grass7):~ > python<br class="">
Python 2.7.10 (default, Feb  7 2017, 00:08:15) <br class="">
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)] on darwin<br class="">
Type "help", "copyright", "credits" or "license" for more information.</div>
<div class=""><br class="">
</div>
<div class="">GRASS_PYTHON, is set, but it is still using system Python 2.7.10 instead of Anaconda Python 2.7.13</div>
<div class=""><br class="">
</div>
</div>
</blockquote>
<div class=""><br class="">
<br class="">
GRASS_PYTHON is actually an environmental variable (system driven, not by GRASS) , so you need to use:<br class="">
<br class="">
</div>
<div class="">export GRASS_PYTHON=/.../python  # set value<br class="">
</div>
<div class="">echo $GRASS_PYTHON  # get value<br class="">
</div>
<div class=""><br class="">
</div>
<div class="">g.setenv changes the GRASS (environment) variables (aka "GIS env" or "GRASS variables").<br class="">
</div>
<div class=""><br class="">
<a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__grass.osgeo.org_grass72_manuals_variables.html&d=DwMFaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=MD1Gik_Ukb94oqEn8xUzM4MmRA32DEGKDb9KLMTZOeY&s=EmOd1wDPGNwdhIbBwQvgT8t-sVeUaSNgAgSR9kFJRvM&e=" class="">https://grass.osgeo.org/grass72/manuals/variables.html</a><br class="">
<a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__grass.osgeo.org_grass72_manuals_g.gisenv.html&d=DwMFaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=MD1Gik_Ukb94oqEn8xUzM4MmRA32DEGKDb9KLMTZOeY&s=yo3Xc65iMuqORBwABV8dM4gXsPwdzeI4P-Uqi_-XZZ0&e=" class="">https://grass.osgeo.org/grass72/manuals/g.gisenv.html</a><br class="">
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>