Hi,
Trying to install PyMC on Macbook, following installation instructions.
Getting errors, please see below.
Any will help will be appreciated.
NoSectionError Traceback (most recent call last)
File ~/opt/anaconda3/envs/pymc_env/lib/python3.11/site-packages/pytensor/configparser.py:201, in PyTensorConfigParser.fetch_val_for_key(self, key, delete_key)
200 try:
→ 201 return self._pytensor_cfg.get(section, option)
202 except InterpolationError:
File ~/opt/anaconda3/envs/pymc_env/lib/python3.11/configparser.py:797, in RawConfigParser.get(self, section, option, raw, vars, fallback)
796 try:
→ 797 d = self._unify_values(section, vars)
798 except NoSectionError:
File ~/opt/anaconda3/envs/pymc_env/lib/python3.11/configparser.py:1170, in RawConfigParser._unify_values(self, section, vars)
1169 if section != self.default_section:
→ 1170 raise NoSectionError(section) from None
1171 # Update with the entry specific variables
NoSectionError: No section: ‘blas’
During handling of the above exception, another exception occurred:
KeyError Traceback (most recent call last)
File ~/opt/anaconda3/envs/pymc_env/lib/python3.11/site-packages/pytensor/configparser.py:317, in ConfigParam.get(self, cls, type_, delete_key)
316 try:
→ 317 val_str = cls.fetch_val_for_key(self.name, delete_key=delete_key)
318 self.is_default = False
File ~/opt/anaconda3/envs/pymc_env/lib/python3.11/site-packages/pytensor/configparser.py:205, in PyTensorConfigParser.fetch_val_for_key(self, key, delete_key)
204 except (NoOptionError, NoSectionError):
→ 205 raise KeyError(key)
KeyError: ‘blas__ldflags’
During handling of the above exception, another exception occurred:
AttributeError Traceback (most recent call last)
Cell In[3], line 4
2 import matplotlib.pyplot as plt
3 import numpy as np
----> 4 import pymc as pm
5 import pytensor.tensor as pt
7 RANDOM_SEED = 8927
File ~/opt/anaconda3/envs/pymc_env/lib/python3.11/site-packages/pymc/init.py:47
42 augmented = f"{augmented} -fno-unwind-tables -fno-asynchronous-unwind-tables"
44 pytensor.config.gcc__cxxflags = augmented
—> 47 __set_compiler_flags()
49 from pymc import _version, gp, ode, sampling
50 from pymc.backends import *
File ~/opt/anaconda3/envs/pymc_env/lib/python3.11/site-packages/pymc/init.py:30, in __set_compiler_flags()
28 def __set_compiler_flags():
29 # Workarounds for PyTensor compiler problems on various platforms
—> 30 import pytensor
32 current = pytensor.config.gcc__cxxflags
33 augmented = f"{current} -Wno-c++11-narrowing"
File ~/opt/anaconda3/envs/pymc_env/lib/python3.11/site-packages/pytensor/init.py:119
115 return as_tensor_variable(x, **kwargs)
118 # isort: off
→ 119 from pytensor import scalar, tensor
120 from pytensor.compile import (
121 In,
122 Mode,
(…)
128 shared,
129 )
130 from pytensor.compile.function import function, function_dump
File ~/opt/anaconda3/envs/pymc_env/lib/python3.11/site-packages/pytensor/tensor/init.py:106
104 # adds shared-variable constructors
105 from pytensor.tensor import sharedvar # noqa
→ 106 from pytensor.tensor import ( # noqa
107 blas,
108 blas_c,
109 blas_scipy,
110 xlogx,
111 )
112 import pytensor.tensor.rewriting
115 # isort: off
File ~/opt/anaconda3/envs/pymc_env/lib/python3.11/site-packages/pytensor/tensor/blas.py:102
100 from pytensor.scalar import bool as bool_t
101 from pytensor.tensor import basic as at
→ 102 from pytensor.tensor.blas_headers import blas_header_text, blas_header_version
103 from pytensor.tensor.elemwise import DimShuffle
104 from pytensor.tensor.math import add, mul, neg, sub
File ~/opt/anaconda3/envs/pymc_env/lib/python3.11/site-packages/pytensor/tensor/blas_headers.py:1015
997 header += textwrap.dedent(
998 “”"
999 static float sdot_(int* Nx, float* x, int* Sx, float* y, int* Sy)
(…)
1009 “”"
1010 )
1012 return header + blas_code
→ 1015 if not config.blas__ldflags:
1016 _logger.warning(“Using NumPy C-API based implementation for BLAS functions.”)
1019 def mkl_threads_text():
File ~/opt/anaconda3/envs/pymc_env/lib/python3.11/site-packages/pytensor/configparser.py:321, in ConfigParam.get(self, cls, type_, delete_key)
319 except KeyError:
320 if callable(self.default):
→ 321 val_str = self.default()
322 else:
323 val_str = self.default
File ~/opt/anaconda3/envs/pymc_env/lib/python3.11/site-packages/pytensor/link/c/cmodule.py:2720, in default_blas_ldflags()
2718 warn_record =
2719 try:
→ 2720 blas_info = np.config.get_info(“blas_opt”)
2722 # If we are in a EPD installation, mkl is available
2723 if “EPD” in sys.version:
AttributeError: module ‘numpy.config’ has no attribute ‘get_info’