Anaconda 2.4.2: The JupyterLab 3.5.3 fails to run the python code of the Geographically Weighted Regression (GWR),
I couldn’t figure out why the The JupyterLab 3.5.3 fails to run the python code of the Geographically Weighted Regression (GWR) and ends up with the error below:
---------------------------------------------------
image links:
clip_19.jpg
clip_18.jpg
I couldn’t figure out why the The JupyterLab 3.5.3 fails to run the python code of the Geographically Weighted Regression (GWR) and ends up with the error below:
1 2 3 4 5 6 7 8 9 |
ImportError Traceback (most recent call last) Cell In[ 6 ], line 5 3 import libpysal 4 from libpysal import weights - - - - > 5 from spreg import GWR, ML_Error 7 # Read the data from the Excel file 8 file_path = "C:/D/H3.xlsx" ImportError: cannot import name 'GWR' from 'spreg' (C:\Users\jamalali\anaconda3\lib\site - packages\spreg\__init__.py) |
image links:
clip_19.jpg
clip_18.jpg
Larz60+ write Aug-23-2023, 08:57 PM:
Please post all code, output and errors (it it's entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.
Added bbcode tags for you this time. Please use BBCode tags on future posts.
I also fixed the image links
Please post all code, output and errors (it it's entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.
Added bbcode tags for you this time. Please use BBCode tags on future posts.
I also fixed the image links