Pytensor Compile error on windows machine using VScode

I am using a Dell Precision 3580 Running Widows 10 with an X-64 processor. Because of how IT needs things to be done at my job, all of the whl files have to be saved onto a remote server and installed from there so Conda was not a viable option and I elected to used PDM to manage my environment. I am also trying to use Juypter Interactive windows on VScode.

With the following Code

> # %%
> import pandas as pd
> import datetime as dt
> import numpy as np
> import seaborn as sns
> import matplotlib
> import matplotlib.pyplot as plt
> import pymc as pm
> import arviz as az
> from scipy import stats
> from pytensor import shared  
> import pytensor.tensor as at 
> 
> # %%
> penguins = sns.load_dataset('penguins')
> # Subset to the columns needed
> missing_data = penguins.isnull()[
>     ["bill_length_mm", "flipper_length_mm", 
>      "sex", "body_mass_g"]
> ].any(axis=1)
> # Drop rows with any missing data
> penguins = penguins.loc[~missing_data]
> 
> summary_stats = (penguins.loc[:, ["species", "body_mass_g"]]
>                          .groupby("species")
>                          .agg(["mean", "std", "count"]))
> 
> species_one_hot = (pd.get_dummies(penguins['species'],\
>     columns=['species'], prefix='', prefix_sep=''))
> 
> # %%
> with pm.Model() as model_penguin_mass_all_species:
>     # Note the addition of the shape parameter
>     σ = pm.HalfStudentT("σ", 100, 2000, shape=3)
>     μ = pm.Normal("μ", 4000, 3000, shape=3)
>     mass = pm.Normal("mass",
>                      mu=μ.dot(species_one_hot.T),
>                      sigma=σ.dot(species_one_hot.T),
>                      observed=penguins["body_mass_g"])
> 
>     trace = pm.sample()

I am getting the error message below in my interactive window:

> ERROR (pytensor.graph.rewriting.basic): Rewrite failure due to: constant_folding
> ERROR (pytensor.graph.rewriting.basic): node: DropDims{axis=0}([3])
> ERROR (pytensor.graph.rewriting.basic): TRACEBACK:
> ERROR (pytensor.graph.rewriting.basic): Traceback (most recent call last):
>   File "c:\Users\WYoung1\AppData\Python\.venv\Lib\site-packages\pytensor\graph\rewriting\basic.py", line 1919, in process_node
>     replacements = node_rewriter.transform(fgraph, node)
>                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "c:\Users\WYoung1\AppData\Python\.venv\Lib\site-packages\pytensor\graph\rewriting\basic.py", line 1081, in transform
>     return self.fn(fgraph, node)
>            ^^^^^^^^^^^^^^^^^^^^^
>   File "c:\Users\WYoung1\AppData\Python\.venv\Lib\site-packages\pytensor\tensor\rewriting\basic.py", line 1120, in constant_folding
>     thunk = node.op.make_thunk(node, storage_map, compute_map, no_recycling=[])
>             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "c:\Users\WYoung1\AppData\Python\.venv\Lib\site-packages\pytensor\link\c\op.py", line 119, in make_thunk
>     return self.make_c_thunk(node, storage_map, compute_map, no_recycling)
>            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "c:\Users\WYoung1\AppData\Python\.venv\Lib\site-packages\pytensor\link\c\op.py", line 84, in make_c_thunk
>     outputs = cl.make_thunk(
>               ^^^^^^^^^^^^^^
>   File "c:\Users\WYoung1\AppData\Python\.venv\Lib\site-packages\pytensor\link\c\basic.py", line 1190, in make_thunk
>     cthunk, module, in_storage, out_storage, error_storage = self.__compile__(
>                                                              ^^^^^^^^^^^^^^^^^
>   File "c:\Users\WYoung1\AppData\Python\.venv\Lib\site-packages\pytensor\link\c\basic.py", line 1110, in __compile__
>     thunk, module = self.cthunk_factory(
>                     ^^^^^^^^^^^^^^^^^^^^
>   File "c:\Users\WYoung1\AppData\Python\.venv\Lib\site-packages\pytensor\link\c\basic.py", line 1632, in cthunk_factory
>     module = cache.module_from_key(key=key, lnk=self)
>              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "c:\Users\WYoung1\AppData\Python\.venv\Lib\site-packages\pytensor\link\c\cmodule.py", line 1250, in module_from_key
>     module = lnk.compile_cmodule(location)
>              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "c:\Users\WYoung1\AppData\Python\.venv\Lib\site-packages\pytensor\link\c\basic.py", line 1533, in compile_cmodule
>     module = c_compiler.compile_str(
>              ^^^^^^^^^^^^^^^^^^^^^^^
>   File "c:\Users\WYoung1\AppData\Python\.venv\Lib\site-packages\pytensor\link\c\cmodule.py", line 2651, in compile_str
>     raise CompileError(
> pytensor.link.c.exceptions.CompileError: Compilation failed (return status=1):
> "c:\Rtools\mingw_32\bin\g++.exe" -shared -g -O3 -fno-math-errno -Wno-unused-label -Wno-unused-variable -Wno-write-strings -Wno-c++11-narrowing -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -m64 -DMS_WIN64 -I"c:\Users\WYoung1\AppData\Python\.venv\Lib\site-packages\numpy\core\include" -I"C:\Program Files\Python312\include" -I"c:\Users\WYoung1\AppData\Python\.venv\Lib\site-packages\pytensor\link\c\c_code" -L"C:\Program Files\Python312\libs" -L"C:\Program Files\Python312" -o "C:\Users\WYoung1\AppData\Local\PyTensor\compiledir_Windows-10-10.0.19045-SP0-Intel64_Family_6_Model_186_Stepping_2_GenuineIntel-3.12.3-64\tmpv3xbclhq\mfeba4d434591def33153ec442edc27a735fd9fa46fd5f1fae8efd4f490539b0a.pyd" "C:\Users\WYoung1\AppData\Local\PyTensor\compiledir_Windows-10-10.0.19045-SP0-Intel64_Family_6_Model_186_Stepping_2_GenuineIntel-3.12.3-64\tmpv3xbclhq\mod.cpp" "C:\Program Files\Python312\python312.dll"
> C:\Users\WYoung1\AppData\Local\PyTensor\compiledir_Windows-10-10.0.19045-SP0-Intel64_Family_6_Model_186_Stepping_2_GenuineIntel-3.12.3-64\tmpv3xbclhq\mod.cpp:1:0: sorry, unimplemented: 64-bit mode not compiled in
>  #include <Python.h>
>  ^
> 
> 
> ERROR (pytensor.graph.rewriting.basic): Rewrite failure due to: constant_folding
> ERROR (pytensor.graph.rewriting.basic): node: DropDims{axis=0}([3])
> ERROR (pytensor.graph.rewriting.basic): TRACEBACK:
> ERROR (pytensor.graph.rewriting.basic): Traceback (most recent call last):
>   File "c:\Users\WYoung1\AppData\Python\.venv\Lib\site-packages\pytensor\graph\rewriting\basic.py", line 1919, in process_node
>     replacements = node_rewriter.transform(fgraph, node)
>                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "c:\Users\WYoung1\AppData\Python\.venv\Lib\site-packages\pytensor\graph\rewriting\basic.py", line 1081, in transform
>     return self.fn(fgraph, node)
>            ^^^^^^^^^^^^^^^^^^^^^
>   File "c:\Users\WYoung1\AppData\Python\.venv\Lib\site-packages\pytensor\tensor\rewriting\basic.py", line 1120, in constant_folding
>     thunk = node.op.make_thunk(node, storage_map, compute_map, no_recycling=[])
>             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "c:\Users\WYoung1\AppData\Python\.venv\Lib\site-packages\pytensor\link\c\op.py", line 119, in make_thunk
>     return self.make_c_thunk(node, storage_map, compute_map, no_recycling)
>            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "c:\Users\WYoung1\AppData\Python\.venv\Lib\site-packages\pytensor\link\c\op.py", line 84, in make_c_thunk
>     outputs = cl.make_thunk(
>               ^^^^^^^^^^^^^^
>   File "c:\Users\WYoung1\AppData\Python\.venv\Lib\site-packages\pytensor\link\c\basic.py", line 1190, in make_thunk
>     cthunk, module, in_storage, out_storage, error_storage = self.__compile__(
>                                                              ^^^^^^^^^^^^^^^^^
>   File "c:\Users\WYoung1\AppData\Python\.venv\Lib\site-packages\pytensor\link\c\basic.py", line 1110, in __compile__
>     thunk, module = self.cthunk_factory(
>                     ^^^^^^^^^^^^^^^^^^^^
>   File "c:\Users\WYoung1\AppData\Python\.venv\Lib\site-packages\pytensor\link\c\basic.py", line 1632, in cthunk_factory
>     module = cache.module_from_key(key=key, lnk=self)
>              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "c:\Users\WYoung1\AppData\Python\.venv\Lib\site-packages\pytensor\link\c\cmodule.py", line 1250, in module_from_key
>     module = lnk.compile_cmodule(location)
>              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "c:\Users\WYoung1\AppData\Python\.venv\Lib\site-packages\pytensor\link\c\basic.py", line 1533, in compile_cmodule
>     module = c_compiler.compile_str(
>              ^^^^^^^^^^^^^^^^^^^^^^^
>   File "c:\Users\WYoung1\AppData\Python\.venv\Lib\site-packages\pytensor\link\c\cmodule.py", line 2651, in compile_str
>     raise CompileError(
> pytensor.link.c.exceptions.CompileError: Compilation failed (return status=1):
> "c:\Rtools\mingw_32\bin\g++.exe" -shared -g -O3 -fno-math-errno -Wno-unused-label -Wno-unused-variable -Wno-write-strings -Wno-c++11-narrowing -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -m64 -DMS_WIN64 -I"c:\Users\WYoung1\AppData\Python\.venv\Lib\site-packages\numpy\core\include" -I"C:\Program Files\Python312\include" -I"c:\Users\WYoung1\AppData\Python\.venv\Lib\site-packages\pytensor\link\c\c_code" -L"C:\Program Files\Python312\libs" -L"C:\Program Files\Python312" -o "C:\Users\WYoung1\AppData\Local\PyTensor\compiledir_Windows-10-10.0.19045-SP0-Intel64_Family_6_Model_186_Stepping_2_GenuineIntel-3.12.3-64\tmpeeixojr7\mfeba4d434591def33153ec442edc27a735fd9fa46fd5f1fae8efd4f490539b0a.pyd" "C:\Users\WYoung1\AppData\Local\PyTensor\compiledir_Windows-10-10.0.19045-SP0-Intel64_Family_6_Model_186_Stepping_2_GenuineIntel-3.12.3-64\tmpeeixojr7\mod.cpp" "C:\Program Files\Python312\python312.dll"
> C:\Users\WYoung1\AppData\Local\PyTensor\compiledir_Windows-10-10.0.19045-SP0-Intel64_Family_6_Model_186_Stepping_2_GenuineIntel-3.12.3-64\tmpeeixojr7\mod.cpp:1:0: sorry, unimplemented: 64-bit mode not compiled in
>  #include <Python.h>
>  ^
> 
> 
> ERROR (pytensor.graph.rewriting.basic): Rewrite failure due to: constant_folding
> 
> You can find the C code in this temporary file: C:\Users\WYoung1\AppData\Local\Temp\pytensor_compilation_error_z7i6yci8
> 
> You can find the C code in this temporary file: C:\Users\WYoung1\AppData\Local\Temp\pytensor_compilation_error_qu33gcou
> 
> You can find the C code in this temporary file: C:\Users\WYoung1\AppData\Local\Temp\pytensor_compilation_error_76wbjtxe
> ERROR (pytensor.graph.rewriting.basic): node: DropDims{axis=0}([3])
> ERROR (pytensor.graph.rewriting.basic): TRACEBACK:
> ERROR (pytensor.graph.rewriting.basic): Traceback (most recent call last):
>   File "c:\Users\WYoung1\AppData\Python\.venv\Lib\site-packages\pytensor\graph\rewriting\basic.py", line 1919, in process_node
>     replacements = node_rewriter.transform(fgraph, node)
>                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "c:\Users\WYoung1\AppData\Python\.venv\Lib\site-packages\pytensor\graph\rewriting\basic.py", line 1081, in transform
>     return self.fn(fgraph, node)
>            ^^^^^^^^^^^^^^^^^^^^^
>   File "c:\Users\WYoung1\AppData\Python\.venv\Lib\site-packages\pytensor\tensor\rewriting\basic.py", line 1120, in constant_folding
>     thunk = node.op.make_thunk(node, storage_map, compute_map, no_recycling=[])
>             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "c:\Users\WYoung1\AppData\Python\.venv\Lib\site-packages\pytensor\link\c\op.py", line 119, in make_thunk
>     return self.make_c_thunk(node, storage_map, compute_map, no_recycling)
>            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "c:\Users\WYoung1\AppData\Python\.venv\Lib\site-packages\pytensor\link\c\op.py", line 84, in make_c_thunk
>     outputs = cl.make_thunk(
>               ^^^^^^^^^^^^^^
>   File "c:\Users\WYoung1\AppData\Python\.venv\Lib\site-packages\pytensor\link\c\basic.py", line 1190, in make_thunk
>     cthunk, module, in_storage, out_storage, error_storage = self.__compile__(
>                                                              ^^^^^^^^^^^^^^^^^
>   File "c:\Users\WYoung1\AppData\Python\.venv\Lib\site-packages\pytensor\link\c\basic.py", line 1110, in __compile__
>     thunk, module = self.cthunk_factory(
>                     ^^^^^^^^^^^^^^^^^^^^
>   File "c:\Users\WYoung1\AppData\Python\.venv\Lib\site-packages\pytensor\link\c\basic.py", line 1632, in cthunk_factory
>     module = cache.module_from_key(key=key, lnk=self)
>              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "c:\Users\WYoung1\AppData\Python\.venv\Lib\site-packages\pytensor\link\c\cmodule.py", line 1250, in module_from_key
>     module = lnk.compile_cmodule(location)
>              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "c:\Users\WYoung1\AppData\Python\.venv\Lib\site-packages\pytensor\link\c\basic.py", line 1533, in compile_cmodule
>     module = c_compiler.compile_str(
>              ^^^^^^^^^^^^^^^^^^^^^^^
>   File "c:\Users\WYoung1\AppData\Python\.venv\Lib\site-packages\pytensor\link\c\cmodule.py", line 2651, in compile_str
>     raise CompileError(
> pytensor.link.c.exceptions.CompileError: Compilation failed (return status=1):
> "c:\Rtools\mingw_32\bin\g++.exe" -shared -g -O3 -fno-math-errno -Wno-unused-label -Wno-unused-variable -Wno-write-strings -Wno-c++11-narrowing -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -m64 -DMS_WIN64 -I"c:\Users\WYoung1\AppData\Python\.venv\Lib\site-packages\numpy\core\include" -I"C:\Program Files\Python312\include" -I"c:\Users\WYoung1\AppData\Python\.venv\Lib\site-packages\pytensor\link\c\c_code" -L"C:\Program Files\Python312\libs" -L"C:\Program Files\Python312" -o "C:\Users\WYoung1\AppData\Local\PyTensor\compiledir_Windows-10-10.0.19045-SP0-Intel64_Family_6_Model_186_Stepping_2_GenuineIntel-3.12.3-64\tmp32ybresb\mfeba4d434591def33153ec442edc27a735fd9fa46fd5f1fae8efd4f490539b0a.pyd" "C:\Users\WYoung1\AppData\Local\PyTensor\compiledir_Windows-10-10.0.19045-SP0-Intel64_Family_6_Model_186_Stepping_2_GenuineIntel-3.12.3-64\tmp32ybresb\mod.cpp" "C:\Program Files\Python312\python312.dll"
> C:\Users\WYoung1\AppData\Local\PyTensor\compiledir_Windows-10-10.0.19045-SP0-Intel64_Family_6_Model_186_Stepping_2_GenuineIntel-3.12.3-64\tmp32ybresb\mod.cpp:1:0: sorry, unimplemented: 64-bit mode not compiled in
>  #include <Python.h>
>  ^
> 
> 
> 
> You can find the C code in this temporary file: C:\Users\WYoung1\AppData\Local\Temp\pytensor_compilation_error_0lbbpua3

Please advise on how I can solve this issue. Package list will follow in a comment to this post.

>  name                      │ version        │ location                                                               │
> ├───────────────────────────┼────────────────┼────────────────────────────────────────────────────────────────────────┤
> │ access                    │ 1.1.9          │                                                                        │
> │ affine                    │ 2.4.0          │                                                                        │
> │ anyio                     │ 4.4.0          │                                                                        │
> │ argon2-cffi               │ 23.1.0         │                                                                        │
> │ argon2-cffi-bindings      │ 21.2.0         │                                                                        │
> │ arrow                     │ 1.3.0          │                                                                        │
> │ arviz                     │ 0.18.0         │ C:\Users\WYoung1\AppData\Python\sharexwhls\arviz-0.18.0-py3-none-any.… │
> │ asttokens                 │ 2.4.1          │                                                                        │
> │ async-lru                 │ 2.0.4          │                                                                        │
> │ attrs                     │ 23.2.0         │                                                                        │
> │ awswrangler               │ 3.8.0          │ C:\Users\WYoung1\AppData\Python\sharexwhls\awswrangler-3.8.0-py3-none… │
> │ Babel                     │ 2.15.0         │                                                                        │
> │ beautifulsoup4            │ 4.12.3         │ C:\Users\WYoung1\AppData\Python\sharexwhls\beautifulsoup4-4.12.3-py3-… │
> │ bleach                    │ 6.1.0          │                                                                        │
> │ bokeh                     │ 3.4.1          │ C:\Users\WYoung1\AppData\Python\sharexwhls\bokeh-3.4.1-py3-none-any.w… │
> │ boto3                     │ 1.34.124       │ C:\Users\WYoung1\AppData\Python\sharexwhls\boto3-1.34.124-py3-none-an… │
> │ botocore                  │ 1.34.127       │                                                                        │
> │ cachetools                │ 5.3.3          │                                                                        │
> │ certifi                   │ 2024.6.2       │                                                                        │
> │ cffi                      │ 1.16.0         │                                                                        │
> │ charset-normalizer        │ 3.3.2          │                                                                        │
> │ click                     │ 8.1.7          │                                                                        │
> │ click-plugins             │ 1.1.1          │                                                                        │
> │ cligj                     │ 0.7.2          │                                                                        │
> │ cloudpickle               │ 3.0.0          │                                                                        │
> │ colorama                  │ 0.4.6          │                                                                        │
> │ comm                      │ 0.2.2          │                                                                        │
> │ cons                      │ 0.4.6          │                                                                        │
> │ contourpy                 │ 1.2.1          │                                                                        │
> │ cycler                    │ 0.12.1         │                                                                        │
> │ debugpy                   │ 1.8.1          │                                                                        │
> │ decorator                 │ 5.1.1          │                                                                        │
> │ defusedxml                │ 0.7.1          │                                                                        │
> │ deprecation               │ 2.1.0          │                                                                        │
> │ dm-tree                   │ 0.1.8          │                                                                        │
> │ earthengine-api           │ 0.1.406        │ C:\Users\WYoung1\AppData\Python\sharexwhls\earthengine_api-0.1.406-py… │
> │ esda                      │ 2.5.1          │                                                                        │
> │ etuples                   │ 0.3.9          │                                                                        │
> │ executing                 │ 2.0.1          │                                                                        │
> │ fastjsonschema            │ 2.20.0         │                                                                        │
> │ filelock                  │ 3.15.1         │                                                                        │
> │ fiona                     │ 1.9.6          │                                                                        │
> │ fitter                    │ 1.7.0          │ C:\Users\WYoung1\AppData\Python\sharexwhls\fitter-1.7.0-py3-none-any.… │
> │ fonttools                 │ 4.53.0         │                                                                        │
> │ fqdn                      │ 1.5.1          │                                                                        │
> │ fsspec                    │ 2024.6.0       │                                                                        │
> │ geopandas                 │ 0.14.4         │ C:\Users\WYoung1\AppData\Python\sharexwhls\geopandas-0.14.4-py3-none-… │
> │ giddy                     │ 2.3.5          │                                                                        │
> │ google-api-core           │ 2.19.0         │                                                                        │
> │ google-api-python-client  │ 2.133.0        │                                                                        │
> │ google-auth               │ 2.30.0         │                                                                        │
> │ google-auth-httplib2      │ 0.2.0          │                                                                        │
> │ google-cloud-core         │ 2.4.1          │                                                                        │
> │ google-cloud-storage      │ 2.17.0         │                                                                        │
> │ google-crc32c             │ 1.5.0          │                                                                        │
> │ google-resumable-media    │ 2.7.1          │                                                                        │
> │ googleapis-common-protos  │ 1.63.1         │                                                                        │
> │ graphviz                  │ 0.20.3         │ C:\Users\WYoung1\AppData\Python\sharexwhls\graphviz-0.20.3-py3-none-a… │
> │ h11                       │ 0.14.0         │                                                                        │
> │ h5netcdf                  │ 1.3.0          │                                                                        │
> │ h5py                      │ 3.11.0         │                                                                        │
> │ httpcore                  │ 1.0.5          │                                                                        │
> │ httplib2                  │ 0.22.0         │                                                                        │
> │ httpx                     │ 0.27.0         │                                                                        │
> │ idna                      │ 3.7            │                                                                        │
> │ importlib_metadata        │ 7.1.0          │                                                                        │
> │ inequality                │ 1.0.1          │                                                                        │
> │ intel-openmp              │ 2024.1.2       │                                                                        │
> │ ipykernel                 │ 6.29.4         │                                                                        │
> │ ipython                   │ 8.25.0         │ C:\Users\WYoung1\AppData\Python\sharexwhls\ipython-8.25.0-py3-none-an… │
> │ ipywidgets                │ 8.1.3          │ C:\Users\WYoung1\AppData\Python\sharexwhls\ipywidgets-8.1.3-py3-none-… │
> │ isoduration               │ 20.11.0        │                                                                        │
> │ jedi                      │ 0.19.1         │                                                                        │
> │ Jinja2                    │ 3.1.4          │                                                                        │
> │ jmespath                  │ 1.0.1          │                                                                        │
> │ joblib                    │ 1.4.2          │                                                                        │
> │ json5                     │ 0.9.25         │                                                                        │
> │ jsonpointer               │ 3.0.0          │                                                                        │
> │ jsonschema                │ 4.22.0         │                                                                        │
> │ jsonschema-specifications │ 2023.12.1      │                                                                        │
> │ jupyter-events            │ 0.10.0         │                                                                        │
> │ jupyter-lsp               │ 2.2.5          │                                                                        │
> │ jupyter_client            │ 8.6.2          │                                                                        │
> │ jupyter_core              │ 5.7.2          │                                                                        │
> │ jupyter_server            │ 2.14.1         │                                                                        │
> │ jupyter_server_terminals  │ 0.5.3          │                                                                        │
> │ jupyterlab                │ 4.2.2          │                                                                        │
> │ jupyterlab_pygments       │ 0.3.0          │                                                                        │
> │ jupyterlab_server         │ 2.27.2         │                                                                        │
> │ jupyterlab_widgets        │ 3.0.11         │                                                                        │
> │ kiwisolver                │ 1.4.5          │                                                                        │
> │ libpysal                  │ 4.11.0         │                                                                        │
> │ libpython                 │ 0.2            │                                                                        │
> │ llvmlite                  │ 0.42.0         │                                                                        │
> │ logical-unification       │ 0.4.6          │                                                                        │
> │ loguru                    │ 0.7.2          │                                                                        │
> │ lxml                      │ 5.2.2          │                                                                        │
> │ mapclassify               │ 2.6.1          │                                                                        │
> │ markdown-it-py            │ 3.0.0          │                                                                        │
> │ MarkupSafe                │ 2.1.5          │                                                                        │
> │ matplotlib                │ 3.9.0          │                                                                        │
> │ matplotlib-inline         │ 0.1.7          │                                                                        │
> │ mdurl                     │ 0.1.2          │                                                                        │
> │ mgwr                      │ 2.2.1          │                                                                        │
> │ miniKanren                │ 1.0.3          │                                                                        │
> │ mistune                   │ 3.0.2          │                                                                        │
> │ mkl                       │ 2024.1.0       │                                                                        │
> │ momepy                    │ 0.7.0          │                                                                        │
> │ mpmath                    │ 1.3.0          │                                                                        │
> │ multipledispatch          │ 1.0.0          │                                                                        │
> │ nbclient                  │ 0.10.0         │                                                                        │
> │ nbconvert                 │ 7.16.4         │                                                                        │
> │ nbformat                  │ 5.10.4         │                                                                        │
> │ nest-asyncio              │ 1.6.0          │                                                                        │
> │ networkx                  │ 3.3            │ C:\Users\WYoung1\AppData\Python\sharexwhls\networkx-3.3-py3-none-any.… │
> │ notebook                  │ 7.2.1          │                                                                        │
> │ notebook_shim             │ 0.2.4          │                                                                        │
> │ numba                     │ 0.59.1         │ C:\Users\WYoung1\AppData\Python\sharexwhls\numba-0.59.1-cp312-cp312-w… │
> │ numpy                     │ 1.26.4         │                                                                        │
> │ nutpie                    │ 0.11.0         │ C:\Users\WYoung1\AppData\Python\sharexwhls\nutpie-0.11.0-cp312-none-w… │
> │ overrides                 │ 7.7.0          │                                                                        │
> │ packaging                 │ 24.1           │                                                                        │
> │ pandas                    │ 2.2.2          │ C:\Users\WYoung1\AppData\Python\sharexwhls\pandas-2.2.2-cp312-cp312-w… │
> │ pandocfilters             │ 1.5.1          │                                                                        │
> │ parso                     │ 0.8.4          │                                                                        │
> │ patsy                     │ 0.5.6          │                                                                        │
> │ pillow                    │ 10.3.0         │                                                                        │
> │ platformdirs              │ 4.2.2          │                                                                        │
> │ pointpats                 │ 2.4.0          │                                                                        │
> │ prometheus_client         │ 0.20.0         │                                                                        │
> │ prompt_toolkit            │ 3.0.47         │                                                                        │
> │ proto-plus                │ 1.23.0         │                                                                        │
> │ protobuf                  │ 4.25.3         │                                                                        │
> │ psutil                    │ 6.0.0          │                                                                        │
> │ PuLP                      │ 2.8.0          │                                                                        │
> │ pure-eval                 │ 0.2.2          │                                                                        │
> │ pyarrow                   │ 16.1.0         │                                                                        │
> │ pyasn1                    │ 0.6.0          │                                                                        │
> │ pyasn1_modules            │ 0.4.0          │                                                                        │
> │ PyAthena                  │ 3.8.3          │ C:\Users\WYoung1\AppData\Python\sharexwhls\pyathena-3.8.3-py3-none-an… │
> │ pycparser                 │ 2.22           │                                                                        │
> │ Pygments                  │ 2.18.0         │                                                                        │
> │ pymc                      │ 5.15.1         │ C:\Users\WYoung1\AppData\Python\sharexwhls\pymc-5.15.1-py3-none-any.w… │
> │ pynndescent               │ 0.5.13         │                                                                        │
> │ pyparsing                 │ 3.1.2          │                                                                        │
> │ pyproj                    │ 3.6.1          │                                                                        │
> │ pysal                     │ 24.1           │ C:\Users\WYoung1\AppData\Python\sharexwhls\pysal-24.1-py3-none-any.whl │
> │ pytensor                  │ 2.22.1         │                                                                        │
> │ python-dateutil           │ 2.9.0.post0    │                                                                        │
> │ python-json-logger        │ 2.0.7          │                                                                        │
> │ pytz                      │ 2024.1         │                                                                        │
> │ pywin32                   │ 306            │                                                                        │
> │ pywinpty                  │ 2.0.13         │                                                                        │
> │ PyYAML                    │ 6.0.1          │                                                                        │
> │ pyzmq                     │ 26.0.3         │                                                                        │
> │ quantecon                 │ 0.7.2          │                                                                        │
> │ rasterio                  │ 1.3.10         │ C:\Users\WYoung1\AppData\Python\sharexwhls\rasterio-1.3.10-cp312-cp31… │
> │ rasterstats               │ 0.19.0         │                                                                        │
> │ referencing               │ 0.35.1         │                                                                        │
> │ requests                  │ 2.32.3         │                                                                        │
> │ rfc3339-validator         │ 0.1.4          │                                                                        │
> │ rfc3986-validator         │ 0.1.1          │                                                                        │
> │ rich                      │ 13.7.1         │                                                                        │
> │ rich-click                │ 1.8.3          │                                                                        │
> │ rpds-py                   │ 0.18.1         │                                                                        │
> │ rsa                       │ 4.9            │                                                                        │
> │ Rtree                     │ 1.2.0          │                                                                        │
> │ s3transfer                │ 0.10.1         │                                                                        │
> │ scikit-learn              │ 1.5.0          │ C:\Users\WYoung1\AppData\Python\sharexwhls\scikit_learn-1.5.0-cp312-c… │
> │ scipy                     │ 1.13.1         │ C:\Users\WYoung1\AppData\Python\sharexwhls\scipy-1.13.1-cp312-cp312-w… │
> │ seaborn                   │ 0.13.2         │ C:\Users\WYoung1\AppData\Python\sharexwhls\seaborn-0.13.2-py3-none-an… │
> │ segregation               │ 2.5            │                                                                        │
> │ Send2Trash                │ 1.8.3          │                                                                        │
> │ setuptools                │ 70.0.0         │                                                                        │
> │ shapely                   │ 2.0.4          │                                                                        │
> │ simplejson                │ 3.19.2         │                                                                        │
> │ six                       │ 1.16.0         │                                                                        │
> │ sniffio                   │ 1.3.1          │                                                                        │
> │ snuggs                    │ 1.4.7          │                                                                        │
> │ soupsieve                 │ 2.5            │                                                                        │
> │ spaghetti                 │ 1.7.5.post1    │                                                                        │
> │ spglm                     │ 1.1.0          │                                                                        │
> │ spint                     │ 1.0.7          │                                                                        │
> │ splot                     │ 1.1.5.post1    │                                                                        │
> │ spopt                     │ 0.6.0          │                                                                        │
> │ spreg                     │ 1.4.2          │                                                                        │
> │ spvcm                     │ 0.3.0          │                                                                        │
> │ stack-data                │ 0.6.3          │                                                                        │
> │ statsmodels               │ 0.14.2         │                                                                        │
> │ sympy                     │ 1.12.1         │                                                                        │
> │ tbb                       │ 2021.12.0      │                                                                        │
> │ tenacity                  │ 8.4.1          │                                                                        │
> │ terminado                 │ 0.18.1         │                                                                        │
> │ threadpoolctl             │ 3.5.0          │                                                                        │
> │ tinycss2                  │ 1.3.0          │                                                                        │
> │ tobler                    │ 0.11.2         │                                                                        │
> │ toolz                     │ 0.12.1         │                                                                        │
> │ tornado                   │ 6.4.1          │                                                                        │
> │ tqdm                      │ 4.66.4         │                                                                        │
> │ traitlets                 │ 5.14.3         │                                                                        │
> │ types-python-dateutil     │ 2.9.0.20240316 │                                                                        │
> │ typing_extensions         │ 4.12.2         │                                                                        │
> │ tzdata                    │ 2024.1         │                                                                        │
> │ umap-learn                │ 0.5.6          │ C:\Users\WYoung1\AppData\Python\sharexwhls\umap_learn-0.5.6-py3-none-… │
> │ uri-template              │ 1.3.0          │                                                                        │
> │ uritemplate               │ 4.1.1          │                                                                        │
> │ urllib3                   │ 2.2.2          │                                                                        │
> │ watermark                 │ 2.4.3          │ C:\Users\WYoung1\AppData\Python\sharexwhls\watermark-2.4.3-py2.py3-no… │
> │ wcwidth                   │ 0.2.13         │                                                                        │
> │ webcolors                 │ 24.6.0         │                                                                        │
> │ webencodings              │ 0.5.1          │                                                                        │
> │ websocket-client          │ 1.8.0          │                                                                        │
> │ widgetsnbextension        │ 4.0.11         │                                                                        │
> │ win32-setctime            │ 1.1.0          │                                                                        │
> │ xarray                    │ 2024.5.0       │ C:\Users\WYoung1\AppData\Python\sharexwhls\xarray-2024.5.0-py3-none-a… │
> │ xarray-einstats           │ 0.7.0          │                                                                        │
> │ xyzservices               │ 2024.6.0       │                                                                        │
> │ zipp                      │ 3.19.2

After Some searching, I have determined that PYTensor was not pointing at the correct C compiler on my machine. Unfortunately this takes me to a different problem that I will have to ask in a separate question.

How did you detect the problem was the c compiler and how did you solve it? I’m facing the same issue…