<p dir="auto">When I try to import the package it shows me this message:</p>
<p dir="auto">Traceback (most recent call last):<br>
File "/Users/fabio/Desktop/Utilità/Politecnico/Magistrale/pythonProject1/venv/lib/python3.7/site-packages/sklearn/__check_build/<strong>init</strong>.py", line 44, in <br>
from ._check_build import check_build  # noqa<br>
File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 21, in do_import<br>
module = self._system_import(name, *args, **kwargs)<br>
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<br>
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)<br>
Expected in: /usr/lib/libSystem.B.dylib<br>
in /Users/fabio/Desktop/Utilità/Politecnico/Magistrale/pythonProject1/venv/lib/python3.7/site-packages/sklearn/__check_build/../.dylibs/libomp.dylib<br>
During handling of the above exception, another exception occurred:<br>
Traceback (most recent call last):<br>
File "", line 1, in <br>
File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 21, in do_import<br>
module = self._system_import(name, *args, **kwargs)<br>
File "/Users/fabio/Desktop/Utilità/Politecnico/Magistrale/pythonProject1/venv/lib/python3.7/site-packages/sklearn/<strong>init</strong>.py", line 81, in <br>
from . import __check_build  # noqa: F401<br>
File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 21, in do_import<br>
module = self._system_import(name, *args, **kwargs)<br>
File "/Users/fabio/Desktop/Utilità/Politecnico/Magistrale/pythonProject1/venv/lib/python3.7/site-packages/sklearn/__check_build/<strong>init</strong>.py", line 46, in <br>
raise_build_error(e)<br>
File "/Users/fabio/Desktop/Utilità/Politecnico/Magistrale/pythonProject1/venv/lib/python3.7/site-packages/sklearn/__check_build/<strong>init</strong>.py", line 41, in raise_build_error<br>
%s""" % (e, local_dir, ''.join(dir_content).strip(), msg))<br>
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<br>
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)<br>
Expected in: /usr/lib/libSystem.B.dylib<br>
in /Users/fabio/Desktop/Utilità/Politecnico/Magistrale/pythonProject1/venv/lib/python3.7/site-packages/sklearn/__check_build/../.dylibs/libomp.dylib</p>
<hr>
<p dir="auto">Contents of /Users/fabio/Desktop/Utilità/Politecnico/Magistrale/pythonProject1/venv/lib/python3.7/site-packages/sklearn/__check_build:<br>
<strong>init</strong>.py               <strong>pycache</strong>               _check_build.cpython-37m-darwin.so<br>
setup.py</p>
<hr>
<p dir="auto">It seems that scikit-learn has not been built correctly.<br>
If you have installed scikit-learn from source, please do not forget<br>
to build the package before using it: run <code class="notranslate">python setup.py install</code> or<br>
<code class="notranslate">make</code> in the source directory.<br>
If you have used an installer, please check that it is suited for your<br>
Python version, your operating system and your platform.</p>
<p dir="auto">I've already tried to fix it with unistall and installing back, but still I see this message.</p>
<h4 dir="auto">Describe the bug</h4>

<p dir="auto">Importing <code class="notranslate">scikit-learn==0.24</code> fails on macOS 10.13.</p>
<p dir="auto">I believe this is similar to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="560157938" data-permission-text="Title is private" data-url="https://github.com/nodegui/nodegui/issues/391" data-hovercard-type="issue" data-hovercard-url="/nodegui/nodegui/issues/391/hovercard" href="https://github.com/nodegui/nodegui/issues/391">nodegui/nodegui#391</a>, i.e. the prebuilt <code class="notranslate">libomp</code> binary (from 10.15) isn't compatible with macOS 10.13.</p>
<p dir="auto">We're also tracking this issue on the project where we encountered it: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="773884700" data-permission-text="Title is private" data-url="https://github.com/spinalcordtoolbox/spinalcordtoolbox/issues/3121" data-hovercard-type="issue" data-hovercard-url="/spinalcordtoolbox/spinalcordtoolbox/issues/3121/hovercard" href="https://github.com/spinalcordtoolbox/spinalcordtoolbox/issues/3121">spinalcordtoolbox/spinalcordtoolbox#3121</a>.</p>
<h4 dir="auto">Steps/Code to Reproduce</h4>

<ol dir="auto">
<li>Install <code class="notranslate">scikit-learn==0.24.0</code> on macOS 10.13 (for us, it appeared as a successful install)
<ul dir="auto">
<li>Shown in our CI: <a href="https://travis-ci.com/github/neuropoly/spinalcordtoolbox/jobs/464176777#L568" rel="nofollow">https://travis-ci.com/github/neuropoly/spinalcordtoolbox/jobs/464176777#L568</a></li>
</ul>
</li>
<li>Import <code class="notranslate">scikit-learn</code> (for us, an error was thrown)
<ul dir="auto">
<li>Shown in our CI: <a href="https://travis-ci.com/github/neuropoly/spinalcordtoolbox/jobs/464176777#L1074" rel="nofollow">https://travis-ci.com/github/neuropoly/spinalcordtoolbox/jobs/464176777#L1074</a></li>
</ul>
</li>
</ol>
<h4 dir="auto">Expected Results</h4>

<p dir="auto">No error is thrown.</p>
<h4 dir="auto">Actual Results</h4>

<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="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."><pre class="notranslate"><code class="notranslate">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.
</code></pre></div>
<h4 dir="auto">Versions</h4>

<ul dir="auto">
<li>Python: <code class="notranslate">python-3.6.12</code></li>
<li>Numpy: <code class="notranslate">numpy-1.19.4</code></li>
<li>Scipy: <code class="notranslate">scipy-1.5.4</code></li>
<li>Scikit-learn: <code class="notranslate">scikit-learn-0.24.0</code></li>
</ul>