Issue 1:
When I try to import the package it shows me this message:

Traceback (most recent call last):

File "/Users/fabio/Desktop/Utilità/Politecnico/Magistrale/pythonProject1/venv/lib/python3.7/site-packages/sklearn/__check_build/init.py", line 44, in

from ._check_build import check_build # noqa

File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 21, in do_import

module = self._system_import(name, *args, **kwargs)

ImportError: dlopen(/Users/fabio/Desktop/Utilità/Politecnico/Magistrale/pythonProject1/venv/lib/python3.7/site-packages/sklearn/__check_build/_check_build.cpython-37m-darwin.so, 2): Symbol not found: ____chkstk_darwin

Referenced from: /Users/fabio/Desktop/Utilità/Politecnico/Magistrale/pythonProject1/venv/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/fabio/Desktop/Utilità/Politecnico/Magistrale/pythonProject1/venv/lib/python3.7/site-packages/sklearn/__check_build/../.dylibs/libomp.dylib

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "", line 1, in

File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 21, in do_import

module = self._system_import(name, *args, **kwargs)

File "/Users/fabio/Desktop/Utilità/Politecnico/Magistrale/pythonProject1/venv/lib/python3.7/site-packages/sklearn/init.py", line 81, in

from . import __check_build # noqa: F401

File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 21, in do_import

module = self._system_import(name, *args, **kwargs)

File "/Users/fabio/Desktop/Utilità/Politecnico/Magistrale/pythonProject1/venv/lib/python3.7/site-packages/sklearn/__check_build/init.py", line 46, in

raise_build_error(e)

File "/Users/fabio/Desktop/Utilità/Politecnico/Magistrale/pythonProject1/venv/lib/python3.7/site-packages/sklearn/__check_build/init.py", line 41, in raise_build_error

%s""" % (e, local_dir, ''.join(dir_content).strip(), msg))

ImportError: dlopen(/Users/fabio/Desktop/Utilità/Politecnico/Magistrale/pythonProject1/venv/lib/python3.7/site-packages/sklearn/__check_build/_check_build.cpython-37m-darwin.so, 2): Symbol not found: ____chkstk_darwin

Referenced from: /Users/fabio/Desktop/Utilità/Politecnico/Magistrale/pythonProject1/venv/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/fabio/Desktop/Utilità/Politecnico/Magistrale/pythonProject1/venv/lib/python3.7/site-packages/sklearn/__check_build/../.dylibs/libomp.dylib

Contents of /Users/fabio/Desktop/Utilità/Politecnico/Magistrale/pythonProject1/venv/lib/python3.7/site-packages/sklearn/__check_build:

init.py pycache _check_build.cpython-37m-darwin.so

setup.py

It seems that scikit-learn has not been built correctly.

If you have installed scikit-learn from source, please do not forget

to build the package before using it: run python setup.py install or

make in the source directory.

If you have used an installer, please check that it is suited for your

Python version, your operating system and your platform.

I've already tried to fix it with unistall and installing back, but still I see this message.

Issue 2:
Describe the bug

Importing scikit-learn==0.24 fails on macOS 10.13.

I believe this is similar to nodegui/nodegui#391, i.e. the prebuilt libomp binary (from 10.15) isn't compatible with macOS 10.13.

We're also tracking this issue on the project where we encountered it: spinalcordtoolbox/spinalcordtoolbox#3121.

Steps/Code to Reproduce

Install scikit-learn==0.24.0 on macOS 10.13 (for us, it appeared as a successful install)

Shown in our CI: https://travis-ci.com/github/neuropoly/spinalcordtoolbox/jobs/464176777#L568

Import scikit-learn (for us, an error was thrown)

Shown in our CI: https://travis-ci.com/github/neuropoly/spinalcordtoolbox/jobs/464176777#L1074

Expected Results

No error is thrown.

Actual Results

dlopen(/Users/travis/build/neuropoly/spinalcordtoolbox/python/envs/venv_sct/lib/python3.6/site-packages/sklearn/__check_build/_check_build.cpython-36m-darwin.so, 2): Symbol not found: ____chkstk_darwin
Referenced from: /Users/travis/build/neuropoly/spinalcordtoolbox/python/envs/venv_sct/lib/python3.6/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/travis/build/neuropoly/spinalcordtoolbox/python/envs/venv_sct/lib/python3.6/site-packages/sklearn/__check_build/../.dylibs/libomp.dylib
___________________________________________________________________________
Contents of /Users/travis/build/neuropoly/spinalcordtoolbox/python/envs/venv_sct/lib/python3.6/site-packages/sklearn/__check_build:
__init__.py __pycache__ _check_build.cpython-36m-darwin.so
setup.py
___________________________________________________________________________
It seems that scikit-learn has not been built correctly.

If you have installed scikit-learn from source, please do not forget
to build the package before using it: run `python setup.py install` or
`make` in the source directory.

If you have used an installer, please check that it is suited for your
Python version, your operating system and your platform.

Versions

Python: python-3.6.12

Numpy: numpy-1.19.4

Scipy: scipy-1.5.4

Scikit-learn: scikit-learn-0.24.0