<p dir="auto">These might be symptomatic of having two implementations, where the one that is actually used is determined by the import order (not good).</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; import collections
&gt;&gt;&gt; {k: v for k, v in collections.Counter(np.__all__).items() if v &gt; 1}
{'alen': 2,
 'all': 2,
 'alltrue': 2,
 'amax': 2,
 'amin': 2,
 'any': 2,
 'argmax': 2,
 'argmin': 2,
 'argpartition': 2,
 'argsort': 2,
 'around': 2,
 'choose': 2,
 'clip': 2,
 'compress': 2,
 'cumprod': 2,
 'cumproduct': 2,
 'cumsum': 2,
 'diagonal': 2,
 'mean': 2,
 'ndim': 2,
 'nonzero': 2,
 'partition': 2,
 'prod': 2,
 'product': 2,
 'ptp': 2,
 'put': 2,
 'ravel': 2,
 'repeat': 2,
 'reshape': 2,
 'resize': 2,
 'round_': 2,
 'searchsorted': 2,
 'shape': 2,
 'size': 2,
 'sometrue': 2,
 'sort': 2,
 'squeeze': 2,
 'std': 2,
 'sum': 2,
 'swapaxes': 2,
 'take': 2,
 'trace': 2,
 'transpose': 2,
 'var': 2,
 'issubdtype': 2}"><pre class="notranslate"><span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-k">import</span> <span class="pl-s1">collections</span>
<span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> {<span class="pl-s1">k</span>: <span class="pl-s1">v</span> <span class="pl-k">for</span> <span class="pl-s1">k</span>, <span class="pl-s1">v</span> <span class="pl-c1">in</span> <span class="pl-s1">collections</span>.<span class="pl-v">Counter</span>(<span class="pl-s1">np</span>.<span class="pl-s1">__all__</span>).<span class="pl-en">items</span>() <span class="pl-k">if</span> <span class="pl-s1">v</span> <span class="pl-c1">&gt;</span> <span class="pl-c1">1</span>}
{<span class="pl-s">'alen'</span>: <span class="pl-c1">2</span>,
 <span class="pl-s">'all'</span>: <span class="pl-c1">2</span>,
 <span class="pl-s">'alltrue'</span>: <span class="pl-c1">2</span>,
 <span class="pl-s">'amax'</span>: <span class="pl-c1">2</span>,
 <span class="pl-s">'amin'</span>: <span class="pl-c1">2</span>,
 <span class="pl-s">'any'</span>: <span class="pl-c1">2</span>,
 <span class="pl-s">'argmax'</span>: <span class="pl-c1">2</span>,
 <span class="pl-s">'argmin'</span>: <span class="pl-c1">2</span>,
 <span class="pl-s">'argpartition'</span>: <span class="pl-c1">2</span>,
 <span class="pl-s">'argsort'</span>: <span class="pl-c1">2</span>,
 <span class="pl-s">'around'</span>: <span class="pl-c1">2</span>,
 <span class="pl-s">'choose'</span>: <span class="pl-c1">2</span>,
 <span class="pl-s">'clip'</span>: <span class="pl-c1">2</span>,
 <span class="pl-s">'compress'</span>: <span class="pl-c1">2</span>,
 <span class="pl-s">'cumprod'</span>: <span class="pl-c1">2</span>,
 <span class="pl-s">'cumproduct'</span>: <span class="pl-c1">2</span>,
 <span class="pl-s">'cumsum'</span>: <span class="pl-c1">2</span>,
 <span class="pl-s">'diagonal'</span>: <span class="pl-c1">2</span>,
 <span class="pl-s">'mean'</span>: <span class="pl-c1">2</span>,
 <span class="pl-s">'ndim'</span>: <span class="pl-c1">2</span>,
 <span class="pl-s">'nonzero'</span>: <span class="pl-c1">2</span>,
 <span class="pl-s">'partition'</span>: <span class="pl-c1">2</span>,
 <span class="pl-s">'prod'</span>: <span class="pl-c1">2</span>,
 <span class="pl-s">'product'</span>: <span class="pl-c1">2</span>,
 <span class="pl-s">'ptp'</span>: <span class="pl-c1">2</span>,
 <span class="pl-s">'put'</span>: <span class="pl-c1">2</span>,
 <span class="pl-s">'ravel'</span>: <span class="pl-c1">2</span>,
 <span class="pl-s">'repeat'</span>: <span class="pl-c1">2</span>,
 <span class="pl-s">'reshape'</span>: <span class="pl-c1">2</span>,
 <span class="pl-s">'resize'</span>: <span class="pl-c1">2</span>,
 <span class="pl-s">'round_'</span>: <span class="pl-c1">2</span>,
 <span class="pl-s">'searchsorted'</span>: <span class="pl-c1">2</span>,
 <span class="pl-s">'shape'</span>: <span class="pl-c1">2</span>,
 <span class="pl-s">'size'</span>: <span class="pl-c1">2</span>,
 <span class="pl-s">'sometrue'</span>: <span class="pl-c1">2</span>,
 <span class="pl-s">'sort'</span>: <span class="pl-c1">2</span>,
 <span class="pl-s">'squeeze'</span>: <span class="pl-c1">2</span>,
 <span class="pl-s">'std'</span>: <span class="pl-c1">2</span>,
 <span class="pl-s">'sum'</span>: <span class="pl-c1">2</span>,
 <span class="pl-s">'swapaxes'</span>: <span class="pl-c1">2</span>,
 <span class="pl-s">'take'</span>: <span class="pl-c1">2</span>,
 <span class="pl-s">'trace'</span>: <span class="pl-c1">2</span>,
 <span class="pl-s">'transpose'</span>: <span class="pl-c1">2</span>,
 <span class="pl-s">'var'</span>: <span class="pl-c1">2</span>,
 <span class="pl-s">'issubdtype'</span>: <span class="pl-c1">2</span>}</pre></div>
<p dir="auto">Error popped up while trying to import numpy on Jupyter notebooks</p>
<h3 dir="auto">Reproducing code example:</h3>
<p dir="auto">Upgraded to Mac OX 10.15, and everything was fine for a while, and pandas_profiling disappeared, so I reinstalled it. Then it said NumPy had duplicates so I uninstalled NumPy (via Conda) until Conda could not detect any NumPy package. And then I encountered this error.</p>
<p dir="auto">Here are my current paths:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="which -a python
/usr/bin/python

jupyter kernelspec list
Available kernels:
  ir         /Users/choikwunyu/Library/Jupyter/kernels/ir
  python3    /Users/choikwunyu/anaconda3/share/jupyter/kernels/python3

echo $PATH
/anaconda3/bin:~/anaconda3/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Library/Apple/bin:/Library/TeX/texbin"><pre class="notranslate"><code class="notranslate">which -a python
/usr/bin/python

jupyter kernelspec list
Available kernels:
  ir         /Users/choikwunyu/Library/Jupyter/kernels/ir
  python3    /Users/choikwunyu/anaconda3/share/jupyter/kernels/python3

echo $PATH
/anaconda3/bin:~/anaconda3/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Library/Apple/bin:/Library/TeX/texbin
</code></pre></div>
<h3 dir="auto">Error message:</h3>

<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="
IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!

Importing the numpy c-extensions failed.
- Try uninstalling and reinstalling numpy.
- If you have already done that, then:
  1. Check that you expected to use Python3.6 from &quot;/Users/choikwunyu/anaconda3/bin/python&quot;,
     and that you have no directories in your PATH or PYTHONPATH that can
     interfere with the Python and numpy version &quot;1.17.2&quot; you're trying to use.
  2. If (1) looks fine, you can open a new issue at
     https://github.com/numpy/numpy/issues.  Please include details on:
     - how you installed Python
     - how you installed numpy
     - your operating system
     - whether or not you have multiple versions of Python installed
     - if you built from source, your compiler versions and ideally a build log

- If you're working with a numpy git repository, try `git clean -xdf`
  (removes all files not under version control) and rebuild numpy.

Note: this error has many possible causes, so please don't comment on
an existing issue about this - open a new one instead.

Original error was: dlopen(/Users/choikwunyu/anaconda3/lib/python3.6/site-packages/numpy/core/_multiarray_umath.cpython-36m-darwin.so, 2): Library not loaded: @rpath/libopenblas.dylib
  Referenced from: /Users/choikwunyu/anaconda3/lib/python3.6/site-packages/numpy/core/_multiarray_umath.cpython-36m-darwin.so
  Reason: image not found "><pre lang="ImportError:" class="notranslate"><code class="notranslate">
IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!

Importing the numpy c-extensions failed.
- Try uninstalling and reinstalling numpy.
- If you have already done that, then:
  1. Check that you expected to use Python3.6 from "/Users/choikwunyu/anaconda3/bin/python",
     and that you have no directories in your PATH or PYTHONPATH that can
     interfere with the Python and numpy version "1.17.2" you're trying to use.
  2. If (1) looks fine, you can open a new issue at
     https://github.com/numpy/numpy/issues.  Please include details on:
     - how you installed Python
     - how you installed numpy
     - your operating system
     - whether or not you have multiple versions of Python installed
     - if you built from source, your compiler versions and ideally a build log

- If you're working with a numpy git repository, try `git clean -xdf`
  (removes all files not under version control) and rebuild numpy.

Note: this error has many possible causes, so please don't comment on
an existing issue about this - open a new one instead.

Original error was: dlopen(/Users/choikwunyu/anaconda3/lib/python3.6/site-packages/numpy/core/_multiarray_umath.cpython-36m-darwin.so, 2): Library not loaded: @rpath/libopenblas.dylib
  Referenced from: /Users/choikwunyu/anaconda3/lib/python3.6/site-packages/numpy/core/_multiarray_umath.cpython-36m-darwin.so
  Reason: image not found 
</code></pre></div>
<h3 dir="auto">Numpy/Python version information:</h3>
<p dir="auto"><code class="notranslate">-bash: syntax error near unexpected token `numpy.__version__,'-</code></p>