[GRASS-user] Pandas installation in GRASS GIS environment

Gioia Blayer gioia.blayer at mail.huji.ac.il
Mon Dec 20 05:56:33 PST 2021


Thank you all for the reply and help,

Veronica - I tried according to the link sent but unfortunately it still
doesn't work.

Dheeraj - I downloaded GRASS GIS 7.8.6 from the link on the website
https://grass.osgeo.org/download/mac/ and followed the instructions given.
Is this what you meant?

Overall I am able to install Add-ons, it's just with the add-ons that
depend on python packages (like r.area.createweight that depends on pandas
and scikit-learn) that I have difficulty in installing the relevant
packages in GRASS GIS python environment. Maybe I'm missing something - I
will try to remove and re-install the program from scratch.

Thanks again!


On Mon, Dec 20, 2021 at 3:19 PM Dheeraj Chand <dheeraj at dheerajchand.com>
wrote:

> This may also depend on how you have built GRASS on Mac. There are a few
> ways to do it, all of which are a big pain! Which technique did you use?
>
> Sent from my iPhone
>
> On Dec 20, 2021, at 5:42 AM, Veronica Andreo <veroandreo at gmail.com> wrote:
>
> 
> Hi Gioia,
>
> Have you tried with `pip3 install pandas` in the terminal? I guess the
> pandas you use within pycharm is in a virtualenv or so, and grass might not
> have access to it. I do not use Mac but I found this:
> https://www.geeksforgeeks.org/how-to-install-python-pandas-on-macos/
>
> hope that helps
> Vero
>
> El dom, 19 dic 2021 a las 15:33, Gioia Blayer (<
> gioia.blayer at mail.huji.ac.il>) escribió:
>
>> Hello everyone,
>>
>> I am trying to install the module r.area.createweight in GRASS GIS
>> version 7.8.6 on macOS Monterey 12.1. When I run the command g.extension
>> r.area.createweight from the console in GRASS GIS I get the following
>> error:
>>
>> Fetching <r.area.createweight> from GRASS GIS Addons repository (be
>> patient)...
>> ERROR: Pandas is not installed
>> Compiling...
>> [make: *** [r.area.createweight.tmp.html] Error 1
>> ERROR: Compilation failed, sorry. Please check the above error messages.
>>
>> I do have Pandas because I use it for python in pycharm, but I do not
>> understand how to install Pandas in the GRASS GIS environment.
>> Hope someone can help me with this, I feel it's something quick and
>> technical but I'm new to grass gis, so it takes me some time to learn it.
>>
>> Thank you in advance for the time and help!
>> _______________________________________________
>> grass-user mailing list
>> grass-user at lists.osgeo.org
>> https://lists.osgeo.org/mailman/listinfo/grass-user
>>
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/grass-user
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20211220/20f4e31e/attachment-0001.html>


More information about the grass-user mailing list