# Why am I getting a windows error bug? \[WinError -1066598273\] Windows Error 0xc06d007f

**URL:** <https://discourse.pymc.io/t/why-am-i-getting-a-windows-error-bug-winerror-1066598273-windows-error-0xc06d007f/17379>\
**Category:** General\
**Created:** [October 12, 2025, 9:39pm UTC](https://discourse.pymc.io/t/why-am-i-getting-a-windows-error-bug-winerror-1066598273-windows-error-0xc06d007f/17379 "2025-10-12T21:39:25Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andrew\_Ross](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@Andrew\_Ross](https://discourse.pymc.io/u/Andrew_Ross)\
**Post date:** [October 12, 2025, 9:39pm UTC](https://discourse.pymc.io/t/why-am-i-getting-a-windows-error-bug-winerror-1066598273-windows-error-0xc06d007f/17379/1 "2025-10-12T21:39:25Z")

</div>

All,

I installed anaconda and pymc according to the usual document the pyMC website suggested. When I run a very simple model, I get the below error. I have googled, unstalled and reinstalled, and I am a total loss. I think pymc is interesting as my research is in Bayesian methodology. If you have any advice I’d greatly appreciate it.

Notes: I ran this in positron, VScode, spyder.

Python Version: 3.13.7

Pymc Version:5.25.1

gcc version: 14.3.0

```py
########################## Model ##################################

size = 100

\# Predictor variable

X1 = np.random.randn(size)

X2 = np.random.randn(size) \* 0.2

\# Simulate outcome variable

Y = alpha + beta\[0\] \* X1 + beta\[1\] \* X2 + rng.normal(size=size) \* sigma

basic_model = pm.Model()

with basic_model:

    \# Priors for unknown model parameters

    alpha = pm.Normal("alpha", mu=0, sigma=10)

    beta = pm.Normal("beta", mu=0, sigma=10, shape=2)

    sigma = pm.HalfNormal("sigma", sigma=1)

    \# Expected value of outcome

    mu = alpha + beta\[0\] \* X1 + beta\[1\] \* X2

    \# Likelihood (sampling distribution) of observations

    Y_obs = pm.Normal("Y_obs", mu=mu, sigma=sigma, observed=Y)

with basic_model:

    idata = pm.sample()

```

```auto
############################# Error #########################################

ERROR (pytensor.graph.rewriting.basic): Rewrite failure due to: constant_folding

ERROR (pytensor.graph.rewriting.basic): node: ExpandDims{axis=0}(10)

ERROR (pytensor.graph.rewriting.basic): TRACEBACK:

ERROR (pytensor.graph.rewriting.basic): Traceback (most recent call last):

File “C:\\Users\\User\\anaconda3\\envs\\pymc_env\\Lib\\site-packages\\pytensor\\graph\\rewriting\\basic.py”, line 1922, in process_node

replacements = node_rewriter.transform(fgraph, node)

File “C:\\Users\\User\\anaconda3\\envs\\pymc_env\\Lib\\site-packages\\pytensor\\graph\\rewriting\\basic.py”, line 1086, in transform

return self.fn(fgraph, node)

       \~\~\~\~\~\~\~^^^^^^^^^^^^^^

File “C:\\Users\\User\\anaconda3\\envs\\pymc_env\\Lib\\site-packages\\pytensor\\tensor\\rewriting\\basic.py”, line 1160, in constant_folding

return unconditional_constant_folding.transform(fgraph, node)

       \~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~^^^^^^^^^^^^^^

File “C:\\Users\\User\\anaconda3\\envs\\pymc_env\\Lib\\site-packages\\pytensor\\graph\\rewriting\\basic.py”, line 1086, in transform

return self.fn(fgraph, node)

       \~\~\~\~\~\~\~^^^^^^^^^^^^^^

File “C:\\Users\\User\\anaconda3\\envs\\pymc_env\\Lib\\site-packages\\pytensor\\tensor\\rewriting\\basic.py”, line 1109, in unconditional_constant_folding

thunk = node.op.make_thunk(node, storage_map, compute_map, no_recycling=\[\])

File “C:\\Users\\User\\anaconda3\\envs\\pymc_env\\Lib\\site-packages\\pytensor\\link\\c\\op.py”, line 125, in make_thunk

return self.make_c_thunk(node, storage_map, compute_map, no_recycling)

       \~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File “C:\\Users\\User\\anaconda3\\envs\\pymc_env\\Lib\\site-packages\\pytensor\\link\\c\\op.py”, line 84, in make_c_thunk

outputs = cl.make_thunk(

    input_storage=node_input_storage, output_storage=node_output_storage

)

File “C:\\Users\\User\\anaconda3\\envs\\pymc_env\\Lib\\site-packages\\pytensor\\link\\c\\basic.py”, line 1185, in make_thunk

cthunk, module, in_storage, out_storage, error_storage = self.\__compile_\_(

                                                         \~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~^

    input_storage, output_storage, storage_map, cache

    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

)

^

File “C:\\Users\\User\\anaconda3\\envs\\pymc_env\\Lib\\site-packages\\pytensor\\link\\c\\basic.py”, line 1102, in \_*compile*\_

thunk, module = self.cthunk_factory(

                \~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~^

    error_storage,

    ^^^^^^^^^^^^^^

...<3 lines>...

    cache,

    ^^^^^^

)

^

File “C:\\Users\\User\\anaconda3\\envs\\pymc_env\\Lib\\site-packages\\pytensor\\link\\c\\basic.py”, line 1613, in cthunk_factory

key = self.cmodule_key()

File “C:\\Users\\User\\anaconda3\\envs\\pymc_env\\Lib\\site-packages\\pytensor\\link\\c\\basic.py”, line 1269, in cmodule_key

compile_args=self.compile_args(),

             \~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~^^

File “C:\\Users\\User\\anaconda3\\envs\\pymc_env\\Lib\\site-packages\\pytensor\\link\\c\\basic.py”, line 951, in compile_args

ret += c_compiler.compile_args()

       \~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~^^

File “C:\\Users\\User\\anaconda3\\envs\\pymc_env\\Lib\\site-packages\\pytensor\\link\\c\\cmodule.py”, line 2149, in compile_args

native_lines = get_lines(\[config.cxx, "-march=native", "-E", "-v", "-"\])

File “C:\\Users\\User\\anaconda3\\envs\\pymc_env\\Lib\\site-packages\\pytensor\\link\\c\\cmodule.py”, line 2109, in get_lines

p = subprocess_Popen(

    cmd,

...<2 lines>...

    stdin=subprocess.PIPE,

)

File “C:\\Users\\User\\anaconda3\\envs\\pymc_env\\Lib\\site-packages\\pytensor\\utils.py”, line 147, in subprocess_Popen

return subprocess.Popen(command, startupinfo=startupinfo, \*\*params)

       \~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File “C:\\Users\\User\\anaconda3\\envs\\pymc_env\\Lib\\subprocess.py”, line 1039, in \_*init*\_

self.\_execute_child(args, executable, preexec_fn, close_fds,

\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

                    pass_fds, cwd, env,

                    ^^^^^^^^^^^^^^^^^^^

...<5 lines>...

                    gid, gids, uid, umask,

                    ^^^^^^^^^^^^^^^^^^^^^^

                    start_new_session, process_group)

                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File “C:\\Users\\User\\anaconda3\\envs\\pymc_env\\Lib\\subprocess.py”, line 1554, in \_execute_child

hp, ht, pid, tid = \_winapi.CreateProcess(executable, args,

                   \~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~^^^^^^^^^^^^^^^^^^

                         \# no special security

                         ^^^^^^^^^^^^^^^^^^^^^

...<4 lines>...

                         cwd,

                         ^^^^

                         startupinfo)

                         ^^^^^^^^^^^^

FileNotFoundError: \[WinError 2\] The system cannot find the file specified

Problem occurred during compilation with the command line below:

/usr/bin/clang++ -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\\User\\anaconda3\\envs\\pymc_env\\Lib\\site-packages\\numpy\\\_core\\include"’ ‘-I"C:\\Users\\User\\anaconda3\\envs\\pymc_env\\include"’ ‘-I"C:\\Users\\User\\anaconda3\\envs\\pymc_env\\Lib\\site-packages\\pytensor\\link\\c\\c_code"’ ‘-L"C:\\Users\\User\\anaconda3\\envs\\pymc_env\\libs"’ ‘-L"C:\\Users\\User\\anaconda3\\envs\\pymc_env"’ -o ‘“C:\\Users\\User\\AppData\\Local\\PyTensor\\compiledir_Windows-11-10.0.26100-SP0-AMD64_Family_26_Model_68_Stepping_0_AuthenticAMD-3.13.7-64\\tmpyftfetsa\\maf0d02fbdfcaf55e62ba8a5e67267798ee89cb10806fd8f5f216a19ab331f072.pyd”’ ‘“C:\\Users\\User\\AppData\\Local\\PyTensor\\compiledir_Windows-11-10.0.26100-SP0-AMD64_Family_26_Model_68_Stepping_0_AuthenticAMD-3.13.7-64\\tmpyftfetsa\\mod.cpp”’ ‘“C:\\Users\\User\\anaconda3\\envs\\pymc_env\\python313.dll”’

Running on PyMC v5.25.1

OSError: \[WinError -1066598273\] Windows Error 0xc06d007f

Cell **In\[2\], line 50**

 47 Y_obs = pm.Normal("Y_obs", mu=mu, sigma=sigma, observed=Y)

 49 **with** basic_model:

**—> 50** idata = pm.sample()

```

Show Traceback

Fix

Explain

---

<div class="post-metadata">

**Author:** ![Andrew\_Ross](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@Andrew\_Ross](https://discourse.pymc.io/u/Andrew_Ross)\
**Post date:** [October 15, 2025, 4:14pm UTC](https://discourse.pymc.io/t/why-am-i-getting-a-windows-error-bug-winerror-1066598273-windows-error-0xc06d007f/17379/2 "2025-10-15T16:14:55Z")

</div>

Anyone have any updates on this?

---

<div class="post-metadata">

**Author:** ![ricardoV94](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.pymc.io/ricardov94/32/5775_2.png) [@ricardoV94](https://discourse.pymc.io/u/ricardoV94)\
**Post date:** [October 15, 2025, 5:09pm UTC](https://discourse.pymc.io/t/why-am-i-getting-a-windows-error-bug-winerror-1066598273-windows-error-0xc06d007f/17379/3 "2025-10-15T17:09:54Z")

</div>

Why is it trying to use clang, if you installed gcc?

Can you print `pytensor.config.cxx`?

---

<div class="post-metadata">

**Author:** ![Andrew\_Ross](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@Andrew\_Ross](https://discourse.pymc.io/u/Andrew_Ross)\
**Post date:** [October 15, 2025, 5:42pm UTC](https://discourse.pymc.io/t/why-am-i-getting-a-windows-error-bug-winerror-1066598273-windows-error-0xc06d007f/17379/4 "2025-10-15T17:42:02Z")

</div>

First, I did this:

(pymc\_env) C:\Users\User\>conda install gxx  
3 channel Terms of Service accepted  
Channels:

- defaults  
Platform: win-64  
Collecting package metadata (repodata.json): done  
Solving environment: done

==\> WARNING: A newer version of conda exists. \<==  
current version: 25.5.1  
latest version: 25.9.1

Please update conda by running

```auto
$ conda update -n base -c defaults conda

```

# Then I import pytensor.config.cxx and get this: ‘C:/Users/User/anaconda3/envs/pymc\_env/Library/mingw-w64/bin/g++.exe’

what’s weird though is when I restart the console and import pytensor for whatever reason I get this: WARNING (pytensor.configdefaults): g++ not available, if using conda: `conda install gxx` as if I never installed it.

---

<div class="post-metadata">

**Author:** ![Andrew\_Ross](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@Andrew\_Ross](https://discourse.pymc.io/u/Andrew_Ross)\
**Post date:** [October 15, 2025, 8:01pm UTC](https://discourse.pymc.io/t/why-am-i-getting-a-windows-error-bug-winerror-1066598273-windows-error-0xc06d007f/17379/5 "2025-10-15T20:01:17Z")

</div>

Also just for records sake:

(pymc\_env) C:\Users\User\>conda list

# packages in environment at C:\Users\User\anaconda3\envs\pymc\_env:

# 

# Name Version Build Channel

\_openmp\_mutex 4.5 2\_gnu conda-forge  
arviz 0.22.0 pyhd8ed1ab\_0 conda-forge  
binutils\_impl\_win-64 2.44 h095e170\_2 conda-forge  
binutils\_win-64 2.44 hd1c8def\_2 conda-forge  
blas 2.135 mkl conda-forge  
blas-devel 3.9.0 35\_h85df5b5\_mkl conda-forge  
brotli 1.1.0 hfd05255\_4 conda-forge  
brotli-bin 1.1.0 hfd05255\_4 conda-forge  
bzip2 1.0.8 h0ad9c76\_8 conda-forge  
ca-certificates 2025.10.5 h4c7d964\_0 conda-forge  
cached-property 1.5.2 hd8ed1ab\_1 conda-forge  
cached\_property 1.5.2 pyha770c72\_1 conda-forge  
cachetools 6.2.1 pyhd8ed1ab\_0 conda-forge  
cairo 1.18.4 h5782bbf\_0 conda-forge  
cloudpickle 3.1.1 pyhd8ed1ab\_0 conda-forge  
conda-gcc-specs 14.3.0 hb72b5b4\_7 conda-forge  
cons 0.4.7 pyhd8ed1ab\_2 conda-forge  
contourpy 1.3.3 py313hf069bd2\_2 conda-forge  
cycler 0.12.1 pyhd8ed1ab\_1 conda-forge  
etuples 0.3.10 pyhd8ed1ab\_1 conda-forge  
filelock 3.20.0 pyhd8ed1ab\_0 conda-forge  
font-ttf-dejavu-sans-mono 2.37 hab24e00\_0 conda-forge  
font-ttf-inconsolata 3.000 h77eed37\_0 conda-forge  
font-ttf-source-code-pro 2.038 h77eed37\_0 conda-forge  
font-ttf-ubuntu 0.83 h77eed37\_3 conda-forge  
fontconfig 2.15.0 h765892d\_1 conda-forge  
fonts-conda-ecosystem 1 0 conda-forge  
fonts-conda-forge 1 0 conda-forge  
fonttools 4.60.1 py313hd650c13\_0 conda-forge  
freetype 2.14.1 h57928b3\_0 conda-forge  
fribidi 1.0.16 hfd05255\_0 conda-forge  
gcc 14.3.0 hc7564cc\_7 conda-forge  
gcc\_impl\_win-64 14.3.0 hdc4538c\_7 conda-forge  
gcc\_win-64 14.3.0 h3dd5ca7\_12 conda-forge  
gendef v12.0.0.r1.ggdc42231f0 he1bec0e\_1 conda-forge  
getopt-win32 0.1 h6a83c73\_3 conda-forge  
graphite2 1.3.14 hac47afa\_2 conda-forge  
graphviz 13.1.2 ha5e8f4b\_0 conda-forge  
gts 0.7.6 h6b5321d\_4 conda-forge  
gxx 14.3.0 h788b078\_7 conda-forge  
gxx\_impl\_win-64 14.3.0 ha70d0c5\_7 conda-forge  
gxx\_win-64 14.3.0 ha536d00\_12 conda-forge  
h5netcdf 1.7.0 pyhd8ed1ab\_0 conda-forge  
h5py 3.15.0 nompi\_py313hf7f959b\_100 conda-forge  
harfbuzz 12.1.0 h5f2951f\_0 conda-forge  
hdf5 1.14.6 nompi\_he30205f\_103 conda-forge  
icu 75.1 he0c23c2\_0 conda-forge  
kiwisolver 1.4.9 py313h1a38498\_1 conda-forge  
krb5 1.21.3 hdf4eb48\_0 conda-forge  
lcms2 2.17 hbcf6048\_0 conda-forge  
ld\_impl\_win-64 2.44 hae1bf67\_2 conda-forge  
lerc 4.0.0 h6470a55\_1 conda-forge  
libaec 1.1.4 h20038f6\_0 conda-forge  
libblas 3.9.0 35\_h5709861\_mkl conda-forge  
libbrotlicommon 1.1.0 hfd05255\_4 conda-forge  
libbrotlidec 1.1.0 hfd05255\_4 conda-forge  
libbrotlienc 1.1.0 hfd05255\_4 conda-forge  
libcblas 3.9.0 35\_h2a3cdd5\_mkl conda-forge  
libcurl 8.14.1 h88aaa65\_0 conda-forge  
libdeflate 1.24 h76ddb4d\_0 conda-forge  
libexpat 2.7.1 hac47afa\_0 conda-forge  
libffi 3.4.6 h537db12\_1 conda-forge  
libfreetype 2.14.1 h57928b3\_0 conda-forge  
libfreetype6 2.14.1 hdbac1cb\_0 conda-forge  
libgcc 15.2.0 h1383e82\_7 conda-forge  
libgcc-devel\_win-64 14.3.0 h3f6730b\_107 conda-forge  
libgd 2.3.3 h7208af6\_11 conda-forge  
libglib 2.86.0 h5f26cbf\_0 conda-forge  
libgomp 15.2.0 h1383e82\_7 conda-forge  
libhwloc 2.12.1 default\_h64bd3f2\_1002 conda-forge  
libiconv 1.18 hc1393d2\_2 conda-forge  
libintl 0.22.5 h5728263\_3 conda-forge  
libjpeg-turbo 3.1.0 h2466b09\_0 conda-forge  
liblapack 3.9.0 35\_hf9ab0e9\_mkl conda-forge  
liblapacke 3.9.0 35\_h3ae206f\_mkl conda-forge  
liblzma 5.8.1 h2466b09\_2 conda-forge  
libmpdec 4.0.0 h2466b09\_0 conda-forge  
libpng 1.6.50 h7351971\_1 conda-forge  
libsqlite 3.50.4 hf5d6505\_0 conda-forge  
libssh2 1.11.1 h9aa295b\_0 conda-forge  
libstdcxx 15.2.0 h904f734\_7 conda-forge  
libstdcxx-devel\_win-64 14.3.0 h3f6730b\_107 conda-forge  
libtiff 4.7.1 h550210a\_0 conda-forge  
libwebp-base 1.6.0 h4d5522a\_0 conda-forge  
libwinpthread 12.0.0.r4.gg4f2fc60ca h57928b3\_10 conda-forge  
libxcb 1.17.0 h0e4246c\_0 conda-forge  
libxml2 2.15.0 ha29bfb0\_1 conda-forge  
libxml2-16 2.15.0 h06f855e\_1 conda-forge  
libzlib 1.3.1 h2466b09\_2 conda-forge  
llvm-openmp 21.1.3 hfa2b4ca\_0 conda-forge  
logical-unification 0.4.6 pyhd8ed1ab\_2 conda-forge  
m2-conda-epoch 20250515 0\_x86\_64 conda-forge  
m2w64-sysroot\_win-64 12.0.0.r4.gg4f2fc60ca hd8ed1ab\_10 conda-forge  
markdown-it-py 4.0.0 pyhd8ed1ab\_0 conda-forge  
matplotlib-base 3.10.6 py313he1ded55\_1 conda-forge  
mdurl 0.1.2 pyhd8ed1ab\_1 conda-forge  
mingw-w64-ucrt-x86\_64-crt-git 12.0.0.r4.gg4f2fc60ca hd8ed1ab\_10 conda-forge  
mingw-w64-ucrt-x86\_64-headers-git 12.0.0.r4.gg4f2fc60ca hd8ed1ab\_10 conda-forge  
mingw-w64-ucrt-x86\_64-windows-default-manifest 6.4 he206cdd\_7 conda-forge  
mingw-w64-ucrt-x86\_64-winpthreads-git 12.0.0.r4.gg4f2fc60ca hd8ed1ab\_10 conda-forge  
minikanren 1.0.5 pyhd8ed1ab\_1 conda-forge  
mkl 2024.2.2 h57928b3\_16 conda-forge  
mkl-devel 2024.2.2 h57928b3\_16 conda-forge  
mkl-include 2024.2.2 h57928b3\_16 conda-forge  
mkl-service 2.5.2 py313haca3b5c\_1 conda-forge  
multipledispatch 0.6.0 pyhd8ed1ab\_1 conda-forge  
munkres 1.1.4 pyhd8ed1ab\_1 conda-forge  
numpy 2.3.3 py313hce7ae62\_0 conda-forge  
openjpeg 2.5.4 h24db6dd\_0 conda-forge  
openssl 3.5.4 h725018a\_0 conda-forge  
packaging 25.0 pyh29332c3\_1 conda-forge  
pandas 2.3.3 py313hc90dcd4\_1 conda-forge  
pango 1.56.4 h03d888a\_0 conda-forge  
pcre2 10.46 h3402e2f\_0 conda-forge  
pillow 11.3.0 py313hf455b62\_3 conda-forge  
pip 25.2 pyh145f28c\_0 conda-forge  
pixman 0.46.4 h5112557\_1 conda-forge  
pthread-stubs 0.4 h0e40799\_1002 conda-forge  
pygments 2.19.2 pyhd8ed1ab\_0 conda-forge  
pymc 5.25.1 hd8ed1ab\_0 conda-forge  
pymc-base 5.25.1 pyhd8ed1ab\_0 conda-forge  
pyparsing 3.2.5 pyhcf101f3\_0 conda-forge  
pytensor 2.31.7 py313h773d846\_0 conda-forge  
pytensor-base 2.31.7 np2py313h776c0ec\_0 conda-forge  
python 3.13.8 hdf00ec1\_101\_cp313 conda-forge  
python-dateutil 2.9.0.post0 pyhe01879c\_2 conda-forge  
python-graphviz 0.21 pyhbacfb6d\_0 conda-forge  
python-tzdata 2025.2 pyhd8ed1ab\_0 conda-forge  
python\_abi 3.13 8\_cp313 conda-forge  
pytz 2025.2 pyhd8ed1ab\_0 conda-forge  
qhull 2020.2 hc790b64\_5 conda-forge  
rich 14.2.0 pyhcf101f3\_0 conda-forge  
scipy 1.16.2 py313h62a08ca\_0 conda-forge  
setuptools 80.9.0 pyhff2d567\_0 conda-forge  
six 1.17.0 pyhe01879c\_1 conda-forge  
tbb 2021.13.0 h18a62a1\_3 conda-forge  
threadpoolctl 3.6.0 pyhecae5ae\_0 conda-forge  
tk 8.6.13 h2c6b04d\_2 conda-forge  
toolz 1.0.0 pyhd8ed1ab\_1 conda-forge  
typing\_extensions 4.15.0 pyhcf101f3\_0 conda-forge  
tzdata 2025b h78e105d\_0 conda-forge  
ucrt 10.0.26100.0 h57928b3\_0 conda-forge  
vc 14.3 h2b53caa\_32 conda-forge  
vc14\_runtime 14.44.35208 h818238b\_32 conda-forge  
vcomp14 14.44.35208 h818238b\_32 conda-forge  
xarray 2025.10.1 pyhd8ed1ab\_0 conda-forge  
xarray-einstats 0.9.1 pyhd8ed1ab\_0 conda-forge  
xorg-libice 1.1.2 h0e40799\_0 conda-forge  
xorg-libsm 1.2.6 h0e40799\_0 conda-forge  
xorg-libx11 1.8.12 hf48077a\_0 conda-forge  
xorg-libxau 1.0.12 h0e40799\_0 conda-forge  
xorg-libxdmcp 1.1.5 h0e40799\_0 conda-forge  
xorg-libxext 1.3.6 h0e40799\_0 conda-forge  
xorg-libxpm 3.5.17 h0e40799\_1 conda-forge  
xorg-libxt 1.3.1 h0e40799\_0 conda-forge  
zstd 1.5.7 hbeecb71\_2 conda-forge

---

<div class="post-metadata">

**Author:** ![ricardoV94](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.pymc.io/ricardov94/32/5775_2.png) [@ricardoV94](https://discourse.pymc.io/u/ricardoV94)\
**Post date:** [October 16, 2025, 6:22am UTC](https://discourse.pymc.io/t/why-am-i-getting-a-windows-error-bug-winerror-1066598273-windows-error-0xc06d007f/17379/6 "2025-10-16T06:22:32Z")

</div>

CC @lucianopaz @maresb

---

<div class="post-metadata">

**Author:** ![maresb](https://avatars.discourse-cdn.com/v4/letter/m/e9bcb4/32.png) [@maresb](https://discourse.pymc.io/u/maresb)\
**Post date:** [October 16, 2025, 10:39am UTC](https://discourse.pymc.io/t/why-am-i-getting-a-windows-error-bug-winerror-1066598273-windows-error-0xc06d007f/17379/7 "2025-10-16T10:39:09Z")

</div>

Hi @Andrew_Ross, sorry that this isn’t working as it should.

Could you please let me know the output of the following commands from a Python session with your Conda environment activated?

```auto
import logging
logger = logging.getLogger("pytensor.link.c.cmodule")
logger.setLevel(logging.DEBUG)
import pytensor
pytensor.config.blas__ldflags

```

---

<div class="post-metadata">

**Author:** ![Andrew\_Ross](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@Andrew\_Ross](https://discourse.pymc.io/u/Andrew_Ross)\
**Post date:** [October 16, 2025, 7:51pm UTC](https://discourse.pymc.io/t/why-am-i-getting-a-windows-error-bug-winerror-1066598273-windows-error-0xc06d007f/17379/8 "2025-10-16T19:51:19Z")

</div>

This will be a learning experience for me, and I appreciate any help from the pymc team!

The output i s below:

```auto
(pymc_env) C:\Users\User>python
Python 3.13.8 | packaged by conda-forge | (main, Oct 13 2025, 14:03:11) [MSC v.1944 64 bit (AMD64)] on win32
Type “help”, “copyright”, “credits” or “license” for more information.

import logging
logger = logging.getLogger(“pytensor.link.c.cmodule”)
logger.setLevel(logging.DEBUG)
import pytensor
pytensor.config.blas__ldflags
Traceback (most recent call last):
File “C:\Users\User\anaconda3\envs\pymc_env\Lib\site-packages\pytensor\configparser.py”, line 300, in fetch_val_for_key
return self._pytensor_cfg.get(section, option)

       ~~~~~~~~~~~~~~~~~~~~~~ ^^^^^^^^^^^^^^^^^

File “C:\Users\User\anaconda3\envs\pymc_env\Lib\configparser.py”, line 812, in get
d = self._unify_values(section, vars)
File “C:\Users\User\anaconda3\envs\pymc_env\Lib\configparser.py”, line 1186, in _unify_values
raise NoSectionError(section) from None
configparser.NoSectionError: No section: ‘blas’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “C:\Users\User\anaconda3\envs\pymc_env\Lib\site-packages\pytensor\configparser.py”, line 415, in get
val_str = cls.fetch_val_for_key(self.name, delete_key=delete_key)
File “C:\Users\User\anaconda3\envs\pymc_env\Lib\site-packages\pytensor\configparser.py”, line 304, in fetch_val_for_key
raise KeyError(key)
KeyError: ‘blas__ldflags’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “”, line 1, in
pytensor.config.blas__ldflags
File “C:\Users\User\anaconda3\envs\pymc_env\Lib\site-packages\pytensor\configparser.py”, line 419, in get
val_str = self.default()
File “C:\Users\User\anaconda3\envs\pymc_env\Lib\site-packages\pytensor\link\c\cmodule.py”, line 2865, in default_blas_ldflags
cxx_library_dirs = _get_cxx_library_dirs()
File “C:\Users\User\anaconda3\envs\pymc_env\Lib\site-packages\pytensor\link\c\cmodule.py”, line 2762, in _get_cxx_library_dirs
p = subprocess_Popen(
cmd,
…<2 lines>…
stdin=subprocess.PIPE,
)
File “C:\Users\User\anaconda3\envs\pymc_env\Lib\site-packages\pytensor\utils.py”, line 147, in subprocess_Popen
return subprocess.Popen(command, startupinfo=startupinfo, **params)
~~~~~~~~~~~~~~~~ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\User\anaconda3\envs\pymc_env\Lib\subprocess.py”, line 1039, in init
self._execute_child(args, executable, preexec_fn, close_fds,
~~~~~~~~~~~~~~~~~~~ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pass_fds, cwd, env,
^^^^^^^^^^^^^^^^^^^
…<5 lines>…
gid, gids, uid, umask,
^^^^^^^^^^^^^^^^^^^^^^
start_new_session, process_group)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\User\anaconda3\envs\pymc_env\Lib\subprocess.py”, line 1554, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
~~~~~~~~~~~~~~~~~~~~~ ^^^^^^^^^^^^^^^^^^

no special security

^^^^^^^^^^^^^^^^^^^^^
…<4 lines>…
cwd,
^^^^
startupinfo)
^^^^^^^^^^^^
FileNotFoundError: [WinError 2] The system cannot find the file specified

```

---

<div class="post-metadata">

**Author:** ![Andrew\_Ross](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@Andrew\_Ross](https://discourse.pymc.io/u/Andrew_Ross)\
**Post date:** [October 16, 2025, 8:59pm UTC](https://discourse.pymc.io/t/why-am-i-getting-a-windows-error-bug-winerror-1066598273-windows-error-0xc06d007f/17379/9 "2025-10-16T20:59:24Z")

</div>

Another thing is for some reason, when I use the pymc environment in any IDE, it crashes. I have no idea why but the base environment can open spyder, be imported in VScode, and positron.
