小编Amm*_*ran的帖子

似乎scikit-learn没有正确构建

我一直在使用 Jupyter Notebook 进行我的机器学习项目。在 scikit-learn 工作正常之前,但最终我安装了pip install imblearnpip install -U imbalanced-learn之后 scikit-learn 停止工作,我收到以下错误:

---------------------------------------------------------------------------
Input: from sklearn.utils import resample




ImportError                               Traceback (most recent call last)
~/opt/anaconda3/lib/python3.7/site-packages/sklearn/__check_build/__init__.py in <module>
     43 try:
---> 44     from ._check_build import check_build  # noqa
     45 except ImportError as e:

ImportError: dlopen(/Users/ammarkamran/opt/anaconda3/lib/python3.7/site-packages/sklearn/__check_build/_check_build.cpython-37m-darwin.so, 2): Symbol not found: ____chkstk_darwin
  Referenced from: /Users/ammarkamran/opt/anaconda3/lib/python3.7/site-packages/sklearn/__check_build/../.dylibs/libomp.dylib (which was built for Mac OS X 10.15)
  Expected in: /usr/lib/libSystem.B.dylib
 in /Users/ammarkamran/opt/anaconda3/lib/python3.7/site-packages/sklearn/__check_build/../.dylibs/libomp.dylib

During handling of the above exception, another exception occurred:

ImportError …
Run Code Online (Sandbox Code Playgroud)

python scikit-learn anaconda jupyter-notebook

3
推荐指数
1
解决办法
4355
查看次数

标签 统计

anaconda ×1

jupyter-notebook ×1

python ×1

scikit-learn ×1