<div dir="ltr"><div class="gmail_default" style="font-family:arial,sans-serif">Disregard the previous, it appears the grass conda-forge feedstock isn't alive. Let me do some digging and get back to you.</div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Tue, Dec 17, 2024 at 5:53 PM Gregory Power <<a href="mailto:gregorywpower@gmail.com">gregorywpower@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:arial,sans-serif"></div><div class="gmail_default" style="font-family:arial,sans-serif">Hey Michael & Vanessa,</div><div class="gmail_default" style="font-family:arial,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,sans-serif">Wrangling Python packages can be a bit tricky. Especially if you're dealing with virtual environments. Installing packages through pip could cause your dependencies to conflict between projects. That being said, Anaconda's conda does have its own pitfalls, especially if you're part of an organization larger than 200 people that uses Anaconda's channels (the conda-forge channel is exempt from this since it is community run).</div><div class="gmail_default" style="font-family:arial,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,sans-serif">Vanessa will have to create a python environment through conda or pixi and add grass/scikit-learn to the same environment. I'd recommend pixi instead of having to reconfigure conda to point to new channels. If you're only able to work with conda, I'd recommend creating a new environment and putting both of those dependencies into their own project.</div><div class="gmail_default" style="font-family:arial,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,sans-serif"><a href="https://github.com/osgeo-forge/grass-feedstock?tab=readme-ov-file#installing-grass" target="_blank">Here's the instructions from the osgeo-forge grass-feedstock</a>.</div><div class="gmail_default" style="font-family:arial,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,sans-serif"> `conda config --add channels conda-forge`</div><div class="gmail_default" style="font-family:arial,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,sans-serif">If you want to install both packages into your 'base' environment on Anaconda. But I highly recommend you at least <a href="https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html" target="_blank">create a new environment</a> and install your packages there.</div><div class="gmail_default" style="font-family:arial,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,sans-serif">`conda install grass scikit-learn`</div><div class="gmail_default" style="font-family:arial,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,sans-serif">With <a href="https://pixi.sh/latest/" target="_blank">pixi</a>:</div><div class="gmail_default" style="font-family:arial,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,sans-serif">pixi init <name of project></div><div class="gmail_default" style="font-family:arial,sans-serif">cd <name-of-directory></div><div class="gmail_default" style="font-family:arial,sans-serif">pixi add python grass scikit-learn</div><div class="gmail_default" style="font-family:arial,sans-serif">pixi shell</div><div class="gmail_default" style="font-family:arial,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,sans-serif">Thank you,</div><div class="gmail_default" style="font-family:arial,sans-serif">Gregory</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Dec 17, 2024 at 3:01 PM <<a href="mailto:grass-user-request@lists.osgeo.org" target="_blank">grass-user-request@lists.osgeo.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Send grass-user mailing list submissions to<br>
<a href="mailto:grass-user@lists.osgeo.org" target="_blank">grass-user@lists.osgeo.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="https://lists.osgeo.org/mailman/listinfo/grass-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/grass-user</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:grass-user-request@lists.osgeo.org" target="_blank">grass-user-request@lists.osgeo.org</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:grass-user-owner@lists.osgeo.org" target="_blank">grass-user-owner@lists.osgeo.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of grass-user digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Python in GRASS on Windows (Michael Barton)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Tue, 17 Dec 2024 16:53:04 +0000<br>
From: Michael Barton <<a href="mailto:Michael.Barton@asu.edu" target="_blank">Michael.Barton@asu.edu</a>><br>
To: GRASS users <<a href="mailto:grass-user@lists.osgeo.org" target="_blank">grass-user@lists.osgeo.org</a>>, GRASS developers<br>
<<a href="mailto:grass-dev@discourse.osgeo.org" target="_blank">grass-dev@discourse.osgeo.org</a>><br>
Cc: Vanessa Extrem <<a href="mailto:Vanessa.Extrem@uv.es" target="_blank">Vanessa.Extrem@uv.es</a>><br>
Subject: [GRASS-user] Python in GRASS on Windows<br>
Message-ID: <<a href="mailto:12319197-5F56-4841-AC64-1F9FB946BBB5@asu.edu" target="_blank">12319197-5F56-4841-AC64-1F9FB946BBB5@asu.edu</a>><br>
Content-Type: text/plain; charset="us-ascii"<br>
<br>
I have a student who is interested in using some of the modeling tools available in GRASS extensions. These require some Python tools (e.g., scikit-learn) to be installed in her GRASS environments.<br>
<br>
For me (on a Mac), I can just pip install -U scikit-learn from the GRASS terminal. But when she does this, the Windows terminal can't find pip. This seems to be just a path problem but I don't know how to troubleshoot it on Windows. She has installed Python via Anaconda and can use Python in GRASS via the Python console, but this does not seem to help in this case (conda can't be found from the GRASS Windows terminal). Can someone point us to a guide of how to install Python packages into the GRASS environment on Windows and/or adjust the path so that the Windows terminal can access Python utilities?<br>
<br>
Thanks<br>
Michael<br>
_____________________________<br>
<br>
C. Michael Barton<br>
Associate Director, School of Complex Adaptive Systems (<a href="https://scas.asu.edu" rel="noreferrer" target="_blank">https://scas.asu.edu</a><<a href="https://scas.asu.edu/" rel="noreferrer" target="_blank">https://scas.asu.edu/</a>>)<br>
Professor, School of Human Evolution & Social Change (<a href="https://shesc.asu.edu" rel="noreferrer" target="_blank">https://shesc.asu.edu</a>)<br>
Director, Center for Social Dynamics & Complexity (<a href="https://complexity.asu.edu" rel="noreferrer" target="_blank">https://complexity.asu.edu</a>)<br>
Arizona State University<br>
Tempe, AZ 85287-2701<br>
USA<br>
<br>
Executive Director, Open Modeling Foundation (<a href="https://openmodelingfoundation.github.io" rel="noreferrer" target="_blank">https://openmodelingfoundation.github.io</a><<a href="https://openmodelingfoundation.github.io/" rel="noreferrer" target="_blank">https://openmodelingfoundation.github.io/</a>>)<br>
Director, Network for Computational Modeling in Social & Ecological Sciences (<a href="https://comses.net" rel="noreferrer" target="_blank">https://comses.net</a>)<br>
<br>
personal website: <a href="http://www.public.asu.edu/~cmbarton" rel="noreferrer" target="_blank">http://www.public.asu.edu/~cmbarton</a><br>
<br>
<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.osgeo.org/pipermail/grass-user/attachments/20241217/44ad7971/attachment-0001.htm" rel="noreferrer" target="_blank">http://lists.osgeo.org/pipermail/grass-user/attachments/20241217/44ad7971/attachment-0001.htm</a>><br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
_______________________________________________<br>
grass-user mailing list<br>
<a href="mailto:grass-user@lists.osgeo.org" target="_blank">grass-user@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/grass-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/grass-user</a><br>
<br>
<br>
------------------------------<br>
<br>
End of grass-user Digest, Vol 224, Issue 1<br>
******************************************<br>
</blockquote></div>
</blockquote></div>