Description
When executing this code:
try:
from probml_utils import latexify, savefig, is_latexify_enabled
except ModuleNotFoundError:
%pip install -qq git+https://github.com/probml/probml-utils.git
from probml_utils import latexify, savefig, is_latexify_enabled
Error Obtained:
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Preparing metadata (setup.py) ... done
Preparing metadata (setup.py) ... done
Building wheel for probml-utils (pyproject.toml) ... done
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
Building wheel for numba (setup.py) ... error
ERROR: Failed building wheel for numba
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
Building wheel for llvmlite (setup.py) ... error
ERROR: Failed building wheel for llvmlite
ERROR: Could not build wheels for numba, llvmlite, which is required to install pyproject.toml-based projects
ModuleNotFoundError Traceback (most recent call last)
in <cell line: 6>()
6 try:
----> 7 from probml_utils import latexify, savefig, is_latexify_enabled
8 except ModuleNotFoundError:
ModuleNotFoundError: No module named 'probml_utils'
During handling of the above exception, another exception occurred:
ModuleNotFoundError Traceback (most recent call last)
in <cell line: 6>()
8 except ModuleNotFoundError:
9 get_ipython().run_line_magic('pip', 'install -qq git+https://github.com/probml/probml-utils.git')
---> 10 from probml_utils import latexify, savefig, is_latexify_enabled
11
12 from jax.scipy.stats import norm
ModuleNotFoundError: No module named 'probml_utils'
In a Local Machine
Same problem happens in a local machine with conda environments based on python 3.11 or 3.10.
However, it works in a conda environment based ob python 3.8