<html><head></head><body><div class="ydp7c13c3eeyahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div></div>
<div dir="ltr" data-setdir="false">Hi Francesca,</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">Sorry for the confusion.<br></div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">FYI, I recently installed the 3.28 .msi QGIS from the QGIS.org website and geopandas is installed. You may just want to update your QGIS. I did not use the OSGeo4W installer, as that was giving me missing .dll errors.</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">If you want to persist with your current install, I think you want to do the following:</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">Open the 'Command Prompt' program (go to the start menu and search for it)<br></div><div dir="ltr" data-setdir="false">When it opens you will this prompt: C:\Users\your_user_name> From file explorer drag and drop the 'python.exe' onto the Command Prompt window. It should list the path to the python.exe file. You then want to press enter. That should log you in to an interactive python terminal and change the prompt to '>>>'. Type in: import geopandas and press enter. That should give you a 'ModuleNotFoundError'. </div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">If it does not give you an error and instead just goes to the next line, you know that geopandas is installed. You can enter: exit() and press enter, and you can close the Command Prompt window.<br></div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">If you get the <span>'ModuleNotFoundError' </span>error, press the up arrow and it should bring up the path to the python.exe file again.<br></div><div dir="ltr" data-setdir="false">Then enter: <span><code>-m pip install geopandas T</code></span>hen press enter.</div><div dir="ltr" data-setdir="false">That should bring up a long list of installation stuff, hopefully none of it is red. You can then press the up arrow twice to get the path to the python.exe and press enter to start python. Then try importing geopandas again as above.</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false"><a href="https://gis.stackexchange.com/questions/346859/importing-geopandas-in-qgis-3" rel="nofollow" target="_blank">https://gis.stackexchange.com/questions/346859/importing-geopandas-in-qgis-3</a></div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">-Thayer</div><div dir="ltr" data-setdir="false"><br></div><div><br></div><div><br></div>
</div><div id="ydp81e007e5yahoo_quoted_2804307607" class="ydp81e007e5yahoo_quoted">
<div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
<div>
On Monday, August 14, 2023 at 05:58:31 AM EDT, Francesca Parente <francescaparente.rse@gmail.com> wrote:
</div>
<div><br></div>
<div><br></div>
<div><div id="ydp81e007e5yiv5875262602"><div><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><br clear="none"></div><div>These are the steps I followed:</div><div><br clear="none"></div><img src="cid:Br2uFziu5nzRA8HFfhW6" alt="image.png" style="width: 472px; max-width: 800px;" data-inlineimagemanipulating="true" draggable="false"><br clear="none">---><br clear="none"><div><img src="cid:ZC4MlYKNxCEO2cTC5zVW" alt="image.png" style="width: 472px; max-width: 574px;" data-inlineimagemanipulating="true" draggable="false"><br clear="none"><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 clear="none"></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><br clear="none"></div><br clear="none"><div class="ydp81e007e5yiv5875262602gmail_quote"><div dir="ltr" class="ydp81e007e5yiv5875262602gmail_attr">Il giorno ven 11 ago 2023 alle ore 19:20 Thayer Young via QGIS-User <<a shape="rect" href="mailto:qgis-user@lists.osgeo.org" rel="nofollow" target="_blank">qgis-user@lists.osgeo.org</a>> ha scritto:<br clear="none"></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex;" class="ydp81e007e5yiv5875262602gmail_quote"><div id="ydp81e007e5yiv5875262602yqt73207" class="ydp81e007e5yiv5875262602yqt3011674901"><div><div style="font-family:Helvetica, Arial, sans-serif;font-size:13px;"><div></div>
<div dir="ltr">Hi Francesca,</div><div dir="ltr"><br clear="none"></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 clear="none"></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 clear="none"></div><div dir="ltr"><a shape="rect" href="https://docs.qgis.org/3.28/en/docs/user_manual/introduction/qgis_configuration.html#system-settings" rel="nofollow" target="_blank">https://docs.qgis.org/3.28/en/docs/user_manual/introduction/qgis_configuration.html#system-settings</a></div><div><br clear="none"></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 clear="none"></div><div dir="ltr"><br clear="none"></div><div dir="ltr">-Thayer</div><div dir="ltr"><br clear="none"></div><div dir="ltr"><br clear="none"></div><div><br clear="none"></div>
</div><div id="ydp81e007e5yiv5875262602m_2507849380155684419m_4035222865717923510m_-8491983605142124370ydpcd12d486yahoo_quoted_2129360296">
<div style="font-family: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 shape="rect" href="mailto:qgis-user-request@lists.osgeo.org" rel="nofollow" target="_blank">qgis-user-request@lists.osgeo.org</a> <<a shape="rect" href="mailto:qgis-user-request@lists.osgeo.org" rel="nofollow" target="_blank">qgis-user-request@lists.osgeo.org</a>> wrote:
</div><div><div dir="ltr">----------------------------------------------------------------------<br clear="none"></div><div dir="ltr">Date: Thu, 10 Aug 2023 17:29:39 +0300<br clear="none"></div><div dir="ltr">From: Paolo Cavallini <<a shape="rect" href="mailto:cavallini@faunalia.it" rel="nofollow" target="_blank">cavallini@faunalia.it</a>><br clear="none"></div><div dir="ltr">To: Francesca Parente <<a shape="rect" href="mailto:francescaparente.rse@gmail.com" rel="nofollow" target="_blank">francescaparente.rse@gmail.com</a>>, Francesca<br clear="none"></div><div dir="ltr"> Parente via QGIS-User <<a shape="rect" href="mailto:qgis-user@lists.osgeo.org" rel="nofollow" target="_blank">qgis-user@lists.osgeo.org</a>>, QGIS User List<br clear="none"></div><div dir="ltr"> <<a shape="rect" href="mailto:qgis-user@lists.osgeo.org" rel="nofollow" target="_blank">qgis-user@lists.osgeo.org</a>><br clear="none"></div><div dir="ltr">Subject: Re: [Qgis-user] spatial analysis toolbox - testing for<br clear="none"></div><div dir="ltr"> autocorrelation<br clear="none"></div><div dir="ltr">Message-ID: <<a shape="rect" href="mailto:CA92BEAF-7DFA-479D-BF82-4614BF7DE30D@faunalia.it" rel="nofollow" target="_blank">CA92BEAF-7DFA-479D-BF82-4614BF7DE30D@faunalia.it</a>><br clear="none"></div><div dir="ltr">Content-Type: text/plain; charset="utf-8"<br clear="none"></div><div dir="ltr"><br clear="none"></div><div dir="ltr">You have to install geopandas.<br clear="none"></div><div dir="ltr">Cheers.<br clear="none"></div><div dir="ltr"><br clear="none"></div><div dir="ltr">Il 10 agosto 2023 17:10:28 EEST, Francesca Parente via QGIS-User <<a shape="rect" href="mailto:qgis-user@lists.osgeo.org" rel="nofollow" target="_blank">qgis-user@lists.osgeo.org</a>> ha scritto:<br clear="none"></div><div dir="ltr">>Hello everyone!<br clear="none"></div><div dir="ltr">><br clear="none"></div><div dir="ltr">>I was wondering how to perform spatial autocorrelation tests in QGis and I<br clear="none"></div><div dir="ltr">>downloaded the Spatial Analysis Toolbox<br clear="none"></div><div dir="ltr">><<a shape="rect" href="https://plugins.qgis.org/plugins/spatialanalysistoolbox/" rel="nofollow" target="_blank">https://plugins.qgis.org/plugins/spatialanalysistoolbox/</a>> plugin.<br clear="none"></div><div dir="ltr">>I can't even open it thought and immediately got the following error<br clear="none"></div><div dir="ltr">>message:<br clear="none"></div><br clear="none"><div dir="ltr">>*Impossibile caricare il plugin 'spatialanalysistoolbox' a causa di un<br clear="none"></div><div dir="ltr">>errore chiamando il metodo classFactory() ModuleNotFoundError: No module<br clear="none"></div><div dir="ltr">>named 'geopandas' Traceback (most recent call last): File<br clear="none"></div><div dir="ltr">>"C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 335, in _startPlugin<br clear="none"></div><div dir="ltr">> plugins[packageName] = package.classFactory(iface) File<br clear="none"></div><div dir="ltr">>"C:/Users/fparente/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\spatialanalysistoolbox\__init__.py",<br clear="none"></div><div dir="ltr">>line 36, in classFactory from .spatialanalysistoolbox import<br clear="none"></div><div dir="ltr">>SpatialAnalysisToolboxPlugin File<br clear="none"></div><div dir="ltr">>"C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 799, in _import mod<br clear="none"></div><div dir="ltr">>= _builtin_import(name, globals, locals, fromlist, level) File<br clear="none"></div><div dir="ltr">>"C:/Users/fparente/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\spatialanalysistoolbox\spatialanalysistoolbox.py",<br clear="none"></div><div dir="ltr">>line 38, in from .spatialanalysistoolbox_provider import<br clear="none"></div><div dir="ltr">>SpatialAnalysisToolboxProvider File<br clear="none"></div><div dir="ltr">>"C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 799, in _import mod<br clear="none"></div><div dir="ltr">>= _builtin_import(name, globals, locals, fromlist, level) File<br clear="none"></div><div dir="ltr">>"C:/Users/fparente/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\spatialanalysistoolbox\spatialanalysistoolbox_provider.py",<br clear="none"></div><div dir="ltr">>line 35, in from .algorithms.GWR_ import GWR_ File<br clear="none"></div><div dir="ltr">>"C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 799, in _import mod<br clear="none"></div><div dir="ltr">>= _builtin_import(name, globals, locals, fromlist, level) File<br clear="none"></div><div dir="ltr">>"C:/Users/fparente/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\spatialanalysistoolbox\algorithms\GWR_.py",<br clear="none"></div><div dir="ltr">>line 23, in import geopandas as gpd File<br clear="none"></div><div dir="ltr">>"C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 799, in _import mod<br clear="none"></div><div dir="ltr">>= _builtin_import(name, globals, locals, fromlist,<br clear="none"></div><div dir="ltr">>level)ModuleNotFoundError: No module named 'geopandas'Versione Python:<br clear="none"></div><div dir="ltr">>3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit<br clear="none"></div><div dir="ltr">>(AMD64)] Versione di QGIS: 3.18.2-Z?rich Z?rich, 515138c171 *<br clear="none"></div><div dir="ltr">><br clear="none"></div><div dir="ltr">>I repeated the download/install procedure, but nothing changed.<br clear="none"></div><div dir="ltr">>Does anybody know how to fix this and/or alternative ways to test for<br clear="none"></div><div dir="ltr">>spatial autocorrelation here?<br clear="none"></div><div dir="ltr">>Thanks a lot and have a good day!<br clear="none"></div><div dir="ltr">>-- <br clear="none"></div><div dir="ltr">>----------------------------<br clear="none"></div><div dir="ltr">>Francesca Parente<br clear="none"></div><div dir="ltr">><br clear="none"></div><div dir="ltr">>_ SESS Euro PhD <<a shape="rect" href="https://iris.uniroma1.it/cris/rp/rp54329" rel="nofollow" target="_blank">https://iris.uniroma1.it/cris/rp/rp54329</a>> in SocioEconomic<br clear="none"></div><div dir="ltr">>and Statistical Studies<br clear="none"></div><div dir="ltr">>_ Linked<br clear="none"></div><div dir="ltr">><<a shape="rect" href="https://www.linkedin.com/in/francesca-parente-55194497/details/publications/" rel="nofollow" target="_blank">https://www.linkedin.com/in/francesca-parente-55194497/details/publications/</a>><br clear="none"></div><div dir="ltr">>in<br clear="none"></div><div dir="ltr">><br clear="none"></div><div dir="ltr">>email: <a shape="rect" href="mailto:francescaparente.rse@gmail.com" rel="nofollow" target="_blank">francescaparente.rse@gmail.com</a><br clear="none"></div><div dir="ltr">> <a shape="rect" href="mailto:fparente@regione.lazio.it" rel="nofollow" target="_blank">fparente@regione.lazio.it</a><br clear="none"></div><div dir="ltr">-------------- next part --------------<br clear="none"></div><div dir="ltr">An HTML attachment was scrubbed...<br clear="none"></div><div dir="ltr">URL: <<a shape="rect" href="http://lists.osgeo.org/pipermail/qgis-user/attachments/20230810/e9edad66/attachment-0001.htm" rel="nofollow" target="_blank">http://lists.osgeo.org/pipermail/qgis-user/attachments/20230810/e9edad66/attachment-0001.htm</a>><br clear="none"></div><div dir="ltr"><br clear="none"></div><div dir="ltr">------------------------------<br clear="none"></div><div dir="ltr"><br clear="none"></div><div dir="ltr">Subject: Digest Footer<br clear="none"></div><div dir="ltr"><br clear="none"></div><div dir="ltr">_______________________________________________<br clear="none"></div><div dir="ltr">QGIS-User mailing list<br clear="none"></div><div dir="ltr"><a shape="rect" href="mailto:QGIS-User@lists.osgeo.org" rel="nofollow" target="_blank">QGIS-User@lists.osgeo.org</a><br clear="none"></div><div dir="ltr">List info: <a shape="rect" href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="nofollow" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br clear="none"></div><div dir="ltr">Unsubscribe: <a shape="rect" href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="nofollow" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br clear="none"></div><div dir="ltr"><br clear="none"></div><div dir="ltr"><br clear="none"></div><div dir="ltr">------------------------------<br clear="none"></div><div dir="ltr"><br clear="none"></div><div dir="ltr">End of QGIS-User Digest, Vol 210, Issue 8<br clear="none"></div><div dir="ltr">*****************************************<br clear="none"></div></div>
</div>
</div></div></div>_______________________________________________<br clear="none">
QGIS-User mailing list<br clear="none">
<a shape="rect" href="mailto:QGIS-User@lists.osgeo.org" rel="nofollow" target="_blank">QGIS-User@lists.osgeo.org</a><br clear="none">
List info: <a shape="rect" href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="nofollow" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br clear="none">
Unsubscribe: <a shape="rect" href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="nofollow" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a></blockquote></div><div dir="ltr" class="ydp81e007e5yiv5875262602gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><br clear="none"></div></div></div></div></div></div></div></div></div></div>
</div></div></div>
</div>
</div></body></html>