Python Forum
Anaconda 2.4.2: The JupyterLab 3.5.3 fails to run the python code of the Geographical
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Anaconda 2.4.2: The JupyterLab 3.5.3 fails to run the python code of the Geographical
#1
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:


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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Setting up new Python kernel for JupyterLab Desktop on M1 Mac daler6 0 1,268 Jun-20-2022, 03:45 AM
Last Post: daler6
  Embedded python fails to compile on Raspberry Pi tryfon 2 3,495 Dec-22-2020, 02:06 PM
Last Post: tryfon
  pip3 install opencv-python fails on 'skbuild' Pedroski55 2 5,753 Sep-15-2020, 11:33 AM
Last Post: snippsat
  JupyterLab Dictionary Content Output Format Ourkid123uk 0 1,325 Sep-04-2020, 02:18 PM
Last Post: Ourkid123uk
  Runs perfect in Python but fails to print last statement when converted to .exe. Help sunil422 3 2,840 Aug-13-2020, 01:22 PM
Last Post: deanhystad
  Cannot find Python installation folder when I install Anaconda bsbsbsbs 1 2,228 Jul-14-2020, 03:14 PM
Last Post: dgrunwal
  Python 3.6.10 fails when running a localized script. Mikee 2 2,144 Jul-09-2020, 10:25 PM
Last Post: Mikee
  Sublime Text + Anaconda not indenting Python code correctly Maxximiliann 0 2,005 Jun-13-2020, 06:09 PM
Last Post: Maxximiliann
  Package installed through Anaconda "not found" by Python zonova 0 2,314 May-08-2020, 11:50 PM
Last Post: zonova
  cannot build python 3.8.2 (make test fails on test_imprtlib) borabora 1 2,765 May-08-2020, 09:10 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020