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

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

########################## 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()
############################# 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

Anyone have any updates on this?

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

Can you print pytensor.config.cxx?

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

$ 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.

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

CC @lucianopaz @maresb

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?

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

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

The output i s below:

(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

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.