I used to use pymc installed with pip on macos. I recently switch to windows system, and tries to get my environment together. I can get pymc installed with pip install pymc
. However when I import it, I got following error: UnicodeDecodeError: 'gbk' codec can't decode byte 0xba in position 2367: illegal multibyte sequence
. Anyone knows how to fix this?
Here is the entire traceback:
WARNING (pytensor.tensor.blas): Using NumPy C-API based implementation for BLAS functions.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\gabri\AppData\Roaming\Python\Python39\site-packages\pymc\__init__.py", line 49, in <module>
from pymc import _version, gp, ode, sampling
File "C:\Users\gabri\AppData\Roaming\Python\Python39\site-packages\pymc\gp\__init__.py", line 15, in <module>
from pymc.gp import cov, mean, util
File "C:\Users\gabri\AppData\Roaming\Python\Python39\site-packages\pymc\gp\util.py", line 30, in <module>
from pymc.distributions.distribution import Distribution
File "C:\Users\gabri\AppData\Roaming\Python\Python39\site-packages\pymc\distributions\__init__.py", line 15, in <module>
from pymc.distributions.bound import Bound
File "C:\Users\gabri\AppData\Roaming\Python\Python39\site-packages\pymc\distributions\bound.py", line 23, in <module>
from pymc.distributions.continuous import BoundedContinuous, bounded_cont_transform
File "C:\Users\gabri\AppData\Roaming\Python\Python39\site-packages\pymc\distributions\continuous.py", line 59, in <module>
from pymc.logprob.abstract import _logcdf_helper, _logprob_helper
File "C:\Users\gabri\AppData\Roaming\Python\Python39\site-packages\pymc\logprob\__init__.py", line 37, in <module>
from pymc.logprob.basic import (
File "C:\Users\gabri\AppData\Roaming\Python\Python39\site-packages\pymc\logprob\basic.py", line 65, in <module>
from pymc.logprob.rewriting import cleanup_ir, construct_ir_fgraph
File "C:\Users\gabri\AppData\Roaming\Python\Python39\site-packages\pymc\logprob\rewriting.py", line 84, in <module>
from pymc.logprob.utils import DiracDelta, indices_from_subtensor
File "C:\Users\gabri\AppData\Roaming\Python\Python39\site-packages\pymc\logprob\utils.py", line 67, in <module>
from pymc.util import makeiter
File "C:\Users\gabri\AppData\Roaming\Python\Python39\site-packages\pymc\util.py", line 20, in <module>
import arviz
File "C:\Users\gabri\AppData\Roaming\Python\Python39\site-packages\arviz\__init__.py", line 33, in <module>
from .data import *
File "C:\Users\gabri\AppData\Roaming\Python\Python39\site-packages\arviz\data\__init__.py", line 2, in <module>
from .base import CoordSpec, DimSpec, dict_to_dataset, numpy_to_data_array
File "C:\Users\gabri\AppData\Roaming\Python\Python39\site-packages\arviz\data\base.py", line 20, in <module>
from .. import __version__, utils
File "C:\Users\gabri\AppData\Roaming\Python\Python39\site-packages\arviz\utils.py", line 667, in <module>
class HtmlTemplate:
File "C:\Users\gabri\AppData\Roaming\Python\Python39\site-packages\arviz\utils.py", line 692, in HtmlTemplate
_, css_style = _load_static_files() # pylint: disable=protected-access
File "C:\Users\gabri\AppData\Roaming\Python\Python39\site-packages\arviz\utils.py", line 662, in _load_static_files
return [
File "C:\Users\gabri\AppData\Roaming\Python\Python39\site-packages\arviz\utils.py", line 663, in <listcomp>
importlib.resources.files("arviz").joinpath(fname).read_text() for fname in STATIC_FILES
File "C:\Program Files\Python39\lib\pathlib.py", line 1257, in read_text
return f.read()
UnicodeDecodeError: 'gbk' codec can't decode byte 0xba in position 2367: illegal multibyte sequence