<div dir="auto"><div>Francesca and list,<br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Aug 14, 2023, 02:58 Francesca Parente via QGIS-User <<a href="mailto:qgis-user@lists.osgeo.org">qgis-user@lists.osgeo.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Thank you both! I checked that out and tried the suggested installing procedure.. but I can't get the command prompt where to type "pip install geopandas".</div><div>I think I'm still missing a piece, I'm not so familiar with the python environment as you can assume.</div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Here is a useful explanation of using pip in python</div><div dir="auto"><br></div><div dir="auto"><a href="https://packaging.python.org/en/latest/tutorials/installing-packages/">https://packaging.python.org/en/latest/tutorials/installing-packages/</a><br></div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><br></div><div>These are the steps I followed:</div><div><br></div><img src="cid:ii_llaon3r70" alt="image.png" width="472" height="119"><br>---><br><div><img src="cid:ii_llaopuh01" alt="image.png" width="472" height="385"><br><div>Then I clicked on "python3.dll", which downloaded the file I tried to open - but got me just another error message in QGis (saying that is an invalid data source).</div><div>I searched online for other tips and tutorials, but (besides another procedure using fiona) I haven't found anything more specific on this one.</div><div><br></div><div>Should I go into the "Scripts" folder and click on "pip.exe" or "pip3.exe"?</div><div>Thanks again for your time and any other inputs you may have!</div><div>Francesca</div></div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">You will want to run python from a command line, not by clicking a dll.</div><div dir="auto"><br></div><div dir="auto">Open your command prompt from the windows menu.</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno ven 11 ago 2023 alle ore 19:20 Thayer Young via QGIS-User <<a href="mailto:qgis-user@lists.osgeo.org" target="_blank" rel="noreferrer">qgis-user@lists.osgeo.org</a>> ha scritto:<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><div style="font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:13px"><div></div>
        <div dir="ltr">Hi Francesca,</div><div dir="ltr"><br></div><div dir="ltr">If you don't know how to install Geopandas, I would like to add to what Paolo said. Geopandas needs to be installed in the python that QGIS is using.</div><div dir="ltr"><div>You can check the location of the python installation by going to the overall preferences for QGIS (command comma on a Mac, probably control comma on other systems.) <span><br></span></div><div><span>From the System tab scroll to the bottom to find the "Current environment variables" scroll down to find PYTHONHOME.</span></div><div><div dir="ltr">This documentation page shows you more with pictures:<br></div><div dir="ltr"><a href="https://docs.qgis.org/3.28/en/docs/user_manual/introduction/qgis_configuration.html#system-settings" rel="nofollow noreferrer" target="_blank">https://docs.qgis.org/3.28/en/docs/user_manual/introduction/qgis_configuration.html#system-settings</a></div><div><br></div></div></div><div dir="ltr">Then in Finder or Explorer, etc. you want to find  location in the file system. On a Mac you will need to right click on QGIS in your applications folder and show package contents.  Then continue through the path and double click to open the python3 file.</div><div dir="ltr">This will bring up a python prompt where you want to type:   <span>pip install geopandas   Then press enter/return. It will run for a while and hopefully say that you successfully installed geopandas. You will probably need to restart QGIS after that.</span><br></div><div dir="ltr"><br></div><div dir="ltr">-Thayer</div><div dir="ltr"><br></div><div dir="ltr"><br></div><div><br></div>
        
        </div><div id="m_2141212570710232787m_2507849380155684419m_4035222865717923510m_-8491983605142124370ydpcd12d486yahoo_quoted_2129360296">
            <div style="font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:13px;color:rgb(38,40,42)">
                
                <div>
                    On Thursday, August 10, 2023 at 03:00:37 PM EDT, <a href="mailto:qgis-user-request@lists.osgeo.org" target="_blank" rel="noreferrer">qgis-user-request@lists.osgeo.org</a> <<a href="mailto:qgis-user-request@lists.osgeo.org" target="_blank" rel="noreferrer">qgis-user-request@lists.osgeo.org</a>> wrote:
                </div><div><div dir="ltr">----------------------------------------------------------------------<br></div><div dir="ltr">Date: Thu, 10 Aug 2023 17:29:39 +0300<br></div><div dir="ltr">From: Paolo Cavallini <<a href="mailto:cavallini@faunalia.it" rel="nofollow noreferrer" target="_blank">cavallini@faunalia.it</a>><br></div><div dir="ltr">To: Francesca Parente <<a href="mailto:francescaparente.rse@gmail.com" rel="nofollow noreferrer" target="_blank">francescaparente.rse@gmail.com</a>>, Francesca<br></div><div dir="ltr">    Parente via QGIS-User <<a href="mailto:qgis-user@lists.osgeo.org" rel="nofollow noreferrer" target="_blank">qgis-user@lists.osgeo.org</a>>, QGIS User List<br></div><div dir="ltr">    <<a href="mailto:qgis-user@lists.osgeo.org" rel="nofollow noreferrer" target="_blank">qgis-user@lists.osgeo.org</a>><br></div><div dir="ltr">Subject: Re: [Qgis-user] spatial analysis toolbox - testing for<br></div><div dir="ltr">    autocorrelation<br></div><div dir="ltr">Message-ID: <<a href="mailto:CA92BEAF-7DFA-479D-BF82-4614BF7DE30D@faunalia.it" rel="nofollow noreferrer" target="_blank">CA92BEAF-7DFA-479D-BF82-4614BF7DE30D@faunalia.it</a>><br></div><div dir="ltr">Content-Type: text/plain; charset="utf-8"<br></div><div dir="ltr"><br></div><div dir="ltr">You have to install geopandas.<br></div><div dir="ltr">Cheers.<br></div><div dir="ltr"><br></div><div dir="ltr">Il 10 agosto 2023 17:10:28 EEST, Francesca Parente via QGIS-User <<a href="mailto:qgis-user@lists.osgeo.org" rel="nofollow noreferrer" target="_blank">qgis-user@lists.osgeo.org</a>> ha scritto:<br></div><div dir="ltr">>Hello everyone!<br></div><div dir="ltr">><br></div><div dir="ltr">>I was wondering how to perform spatial autocorrelation tests in QGis and I<br></div><div dir="ltr">>downloaded the Spatial Analysis Toolbox<br></div><div dir="ltr">><<a href="https://plugins.qgis.org/plugins/spatialanalysistoolbox/" rel="nofollow noreferrer" target="_blank">https://plugins.qgis.org/plugins/spatialanalysistoolbox/</a>> plugin.<br></div><div dir="ltr">>I can't even open it thought and immediately got the following error<br></div><div dir="ltr">>message:<br></div><br><div dir="ltr">>*Impossibile caricare il plugin 'spatialanalysistoolbox' a causa di un<br></div><div dir="ltr">>errore chiamando il metodo classFactory() ModuleNotFoundError: No module<br></div><div dir="ltr">>named 'geopandas' Traceback (most recent call last):  File<br></div><div dir="ltr">>"C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 335, in _startPlugin<br></div><div dir="ltr">>  plugins[packageName] = package.classFactory(iface)  File<br></div><div dir="ltr">>"C:/Users/fparente/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\spatialanalysistoolbox\__init__.py",<br></div><div dir="ltr">>line 36, in classFactory    from .spatialanalysistoolbox import<br></div><div dir="ltr">>SpatialAnalysisToolboxPlugin  File<br></div><div dir="ltr">>"C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 799, in _import    mod<br></div><div dir="ltr">>= _builtin_import(name, globals, locals, fromlist, level)  File<br></div><div dir="ltr">>"C:/Users/fparente/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\spatialanalysistoolbox\spatialanalysistoolbox.py",<br></div><div dir="ltr">>line 38, in     from .spatialanalysistoolbox_provider import<br></div><div dir="ltr">>SpatialAnalysisToolboxProvider  File<br></div><div dir="ltr">>"C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 799, in _import    mod<br></div><div dir="ltr">>= _builtin_import(name, globals, locals, fromlist, level)  File<br></div><div dir="ltr">>"C:/Users/fparente/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\spatialanalysistoolbox\spatialanalysistoolbox_provider.py",<br></div><div dir="ltr">>line 35, in     from .algorithms.GWR_ import GWR_  File<br></div><div dir="ltr">>"C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 799, in _import    mod<br></div><div dir="ltr">>= _builtin_import(name, globals, locals, fromlist, level)  File<br></div><div dir="ltr">>"C:/Users/fparente/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\spatialanalysistoolbox\algorithms\GWR_.py",<br></div><div dir="ltr">>line 23, in     import geopandas as gpd  File<br></div><div dir="ltr">>"C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 799, in _import    mod<br></div><div dir="ltr">>= _builtin_import(name, globals, locals, fromlist,<br></div><div dir="ltr">>level)ModuleNotFoundError: No module named 'geopandas'Versione Python:<br></div><div dir="ltr">>3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit<br></div><div dir="ltr">>(AMD64)] Versione di QGIS: 3.18.2-Z?rich Z?rich, 515138c171 *<br></div><div dir="ltr">><br></div><div dir="ltr">>I repeated the download/install procedure, but nothing changed.<br></div><div dir="ltr">>Does anybody know how to fix this and/or alternative ways to test for<br></div><div dir="ltr">>spatial autocorrelation here?<br></div><div dir="ltr">>Thanks a lot and have a good day!<br></div><div dir="ltr">>-- <br></div><div dir="ltr">>----------------------------<br></div><div dir="ltr">>Francesca Parente<br></div><div dir="ltr">><br></div><div dir="ltr">>_ SESS Euro PhD <<a href="https://iris.uniroma1.it/cris/rp/rp54329" rel="nofollow noreferrer" target="_blank">https://iris.uniroma1.it/cris/rp/rp54329</a>> in SocioEconomic<br></div><div dir="ltr">>and Statistical Studies<br></div><div dir="ltr">>_ Linked<br></div><div dir="ltr">><<a href="https://www.linkedin.com/in/francesca-parente-55194497/details/publications/" rel="nofollow noreferrer" target="_blank">https://www.linkedin.com/in/francesca-parente-55194497/details/publications/</a>><br></div><div dir="ltr">>in<br></div><div dir="ltr">><br></div><div dir="ltr">>email: <a href="mailto:francescaparente.rse@gmail.com" rel="nofollow noreferrer" target="_blank">francescaparente.rse@gmail.com</a><br></div><div dir="ltr">>       <a href="mailto:fparente@regione.lazio.it" rel="nofollow noreferrer" target="_blank">fparente@regione.lazio.it</a><br></div><div dir="ltr">-------------- next part --------------<br></div><div dir="ltr">An HTML attachment was scrubbed...<br></div><div dir="ltr">URL: <<a href="http://lists.osgeo.org/pipermail/qgis-user/attachments/20230810/e9edad66/attachment-0001.htm" rel="nofollow noreferrer" target="_blank">http://lists.osgeo.org/pipermail/qgis-user/attachments/20230810/e9edad66/attachment-0001.htm</a>><br></div><div dir="ltr"><br></div><div dir="ltr">------------------------------<br></div><div dir="ltr"><br></div><div dir="ltr">Subject: Digest Footer<br></div><div dir="ltr"><br></div><div dir="ltr">_______________________________________________<br></div><div dir="ltr">QGIS-User mailing list<br></div><div dir="ltr"><a href="mailto:QGIS-User@lists.osgeo.org" rel="nofollow noreferrer" target="_blank">QGIS-User@lists.osgeo.org</a><br></div><div dir="ltr">List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="nofollow noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br></div><div dir="ltr">Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="nofollow noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br></div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr">------------------------------<br></div><div dir="ltr"><br></div><div dir="ltr">End of QGIS-User Digest, Vol 210, Issue 8<br></div><div dir="ltr">*****************************************<br></div></div>
            </div>
        </div></div>_______________________________________________<br>
QGIS-User mailing list<br>
<a href="mailto:QGIS-User@lists.osgeo.org" target="_blank" rel="noreferrer">QGIS-User@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a></blockquote></div><div dir="ltr" class="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><br></div></div></div></div></div></div></div></div></div></div>
_______________________________________________<br>
QGIS-User mailing list<br>
<a href="mailto:QGIS-User@lists.osgeo.org" target="_blank" rel="noreferrer">QGIS-User@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
</blockquote></div></div></div>