Traceback (most recent call last):
File β/home/appuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.pyβ, line 556, in _run_script
exec(code, module.dict)
File β/app/projetostreamlitamericanas/app.pyβ, line 6, in
import sklearn
File β/home/appuser/venv/lib/python3.9/site-packages/sklearn/init.pyβ, line 82, in
from .base import clone
File β/home/appuser/venv/lib/python3.9/site-packages/sklearn/base.pyβ, line 17, in
from .utils import _IS_32BIT
File β/home/appuser/venv/lib/python3.9/site-packages/sklearn/utils/init.pyβ, line 29, in
from .fixes import parse_version, threadpool_info
File β/home/appuser/venv/lib/python3.9/site-packages/sklearn/utils/fixes.pyβ, line 19, in
import scipy.stats
File β/home/appuser/venv/lib/python3.9/site-packages/scipy/stats/init.pyβ, line 467, in
from ._stats_py import *
File β/home/appuser/venv/lib/python3.9/site-packages/scipy/stats/_stats_py.pyβ, line 37, in
from numpy.testing import suppress_warnings
File β/home/appuser/venv/lib/python3.9/site-packages/numpy/testing/init.pyβ, line 12, in
from ._private import extbuild, decorators as dec
File β/home/appuser/venv/lib/python3.9/site-packages/numpy/testing/_private/extbuild.pyβ, line 11, in
from numpy.distutils.ccompiler import new_compiler
File β/home/appuser/venv/lib/python3.9/site-packages/numpy/distutils/init.pyβ, line 24, in
from . import ccompiler
File β/home/appuser/venv/lib/python3.9/site-packages/numpy/distutils/ccompiler.pyβ, line 20, in
from numpy.distutils import log
File β/home/appuser/venv/lib/python3.9/site-packages/numpy/distutils/log.pyβ, line 4, in
from distutils.log import Log as old_Log
ImportError: cannot import name βLogβ from βdistutils.logβ (/home/appuser/venv/lib/python3.9/site-packages/setuptools/_distutils/log.py)
Hi there,
Thanks for sharing your question with the community! Check out our guidelines on how to post an effective question here β in particular, please edit your post to include a code snippet so we can reproduce the issue.