Conda install error

After clean install Install Instructions

I encounter this error.

Python 3.10.5 | packaged by conda-forge | (main, Jun 14 2022, 06:57:50) [MSC v.1929 64 bit (AMD64)] on win32
Type “help”, “copyright”, “credits” or “license” for more information.

import pymc as pm
Traceback (most recent call last):
File “”, line 1, in
File “C:\Users\s140146\Miniconda3\envs\pymc_env\lib\site-packages\”, line 118, in
File "C:\Users\s140146\Miniconda3\envs\pymc_env\lib\site-packages\pymc_init
.py", line 44, in __suppress_aesara_import_warnings
import numpy.distutils.system_info
File “C:\Users\s140146\Miniconda3\envs\pymc_env\lib\site-packages\numpy\distutils\”, line 196, in
from numpy.distutils.command.config import config as cmd_config
File “C:\Users\s140146\Miniconda3\envs\pymc_env\lib\site-packages\numpy\distutils\command\”, line 19, in
from numpy.distutils.mingw32ccompiler import generate_manifest
File “C:\Users\s140146\Miniconda3\envs\pymc_env\lib\site-packages\numpy\distutils\”, line 28, in
from distutils.msvccompiler import get_build_version as get_build_msvc_version
ModuleNotFoundError: No module named ‘distutils.msvccompiler’

Are you possibly running into this?

That definitely looks like a likely candidate.

Good to know I’m not going mad :sweat_smile:

1 Like

Thanks for reporting this and making the links already!
I created a tracker issue on the pymc-feedstock which is probably where we’ll have to fix it.

As a quick fix, the following command should fix it:

conda install "setuptools <65"

PyMC 4.1.5 should come out soon, and I expect upgrading should also fix this issue.

For the latest info, please check the above link to the pymc-feedstock.

1 Like

It looks like the breaking change in setuptools is now also being reverted so that should flow through in due course as well.

1 Like