<p dir="auto">I installed numpy 1.16 for Python3.6 by upgrading it with <code class="notranslate">pip3 --upgrade</code>. And numpy fails at import on this line </p><div class="Box Box--condensed my-2">
  <div class="Box-header f6">
    <p class="mb-0 text-bold">
      <a href="https://github.com/numpy/numpy/blob/971e2e89d08deeae0139d3011d15646fdac13c92/numpy/core/_methods.py#L158">numpy/numpy/core/_methods.py</a>
    </p>
    <p class="mb-0 color-fg-muted">
         Line 158
      in
      <a data-pjax="true" class="commit-tease-sha" href="/numpy/numpy/commit/971e2e89d08deeae0139d3011d15646fdac13c92">971e2e8</a>
    </p>
  </div>
  <div itemprop="text" class="Box-body p-0 blob-wrapper blob-wrapper-embedded data">
    <table class="highlight tab-size mb-0 js-file-line-container" data-tab-size="8" data-paste-markdown-skip="">

        <tbody><tr class="border-0">
          <td id="L158" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="158"></td>
          <td id="LC158" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">_NDARRAY_ARRAY_FUNCTION</span> <span class="pl-c1">=</span> <span class="pl-s1">mu</span>.<span class="pl-s1">ndarray</span>.<span class="pl-s1">__array_function__</span> </td>
        </tr>
    </tbody></table>
  </div>
</div>
<p></p>
<h3 dir="auto">Reproducing code example:</h3>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="python3

import numpy as np"><pre class="notranslate"><span class="pl-s1">python3</span>

<span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span></pre></div>
<p dir="auto">additionally, please find <code class="notranslate">sys.path</code> output here:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="['', '/usr/lib/python36.zip', '/usr/lib/python3.6', '/usr/lib/python3.6/lib-dynload', '/home/user/.local/lib/python3.6/site-packages', '/usr/local/lib/python3.6/dist-packages', '/usr/lib/pytho
n3/dist-packages']"><pre class="notranslate"><code class="notranslate">['', '/usr/lib/python36.zip', '/usr/lib/python3.6', '/usr/lib/python3.6/lib-dynload', '/home/user/.local/lib/python3.6/site-packages', '/usr/local/lib/python3.6/dist-packages', '/usr/lib/pytho
n3/dist-packages']
</code></pre></div>
<h3 dir="auto">Error message:</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last):
  File &quot;&lt;string&gt;&quot;, line 1, in &lt;module&gt;
  File &quot;/home/user/.local/lib/python3.6/site-packages/numpy/__init__.py&quot;, line 142, in &lt;module&gt;
    from . import core
  File &quot;/home/user/.local/lib/python3.6/site-packages/numpy/core/__init__.py&quot;, line 59, in &lt;module&gt;
    from . import numeric
  File &quot;/home/user/.local/lib/python3.6/site-packages/numpy/core/numeric.py&quot;, line 3093, in &lt;module&gt;
    from . import fromnumeric
  File &quot;/home/user/.local/lib/python3.6/site-packages/numpy/core/fromnumeric.py&quot;, line 17, in &lt;module&gt;
    from . import _methods
  File &quot;/home/user/.local/lib/python3.6/site-packages/numpy/core/_methods.py&quot;, line 158, in &lt;module&gt;
    _NDARRAY_ARRAY_FUNCTION = mu.ndarray.__array_function__
AttributeError: type object 'numpy.ndarray' has no attribute '__array_function__'"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last):
  File "&lt;string&gt;", line 1, in &lt;module&gt;
  File "/home/user/.local/lib/python3.6/site-packages/numpy/__init__.py", line 142, in &lt;module&gt;
    from . import core
  File "/home/user/.local/lib/python3.6/site-packages/numpy/core/__init__.py", line 59, in &lt;module&gt;
    from . import numeric
  File "/home/user/.local/lib/python3.6/site-packages/numpy/core/numeric.py", line 3093, in &lt;module&gt;
    from . import fromnumeric
  File "/home/user/.local/lib/python3.6/site-packages/numpy/core/fromnumeric.py", line 17, in &lt;module&gt;
    from . import _methods
  File "/home/user/.local/lib/python3.6/site-packages/numpy/core/_methods.py", line 158, in &lt;module&gt;
    _NDARRAY_ARRAY_FUNCTION = mu.ndarray.__array_function__
AttributeError: type object 'numpy.ndarray' has no attribute '__array_function__'
</code></pre></div>
<h3 dir="auto">Numpy/Python version information:</h3>
<p dir="auto">Numpy:  numpy-1.16.0<br>
Python: Python 3.6.7 (default, Oct 22 2018, 11:32:17) [GCC 8.2.0] on linux</p>
<p dir="auto">I pip installed the latest numpy and get the below error. The error goes away if I roll back to v1.15.4.<br>
The most closely related issue I could find is <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="363344806" data-permission-text="Title is private" data-url="https://github.com/numpy/numpy/issues/12028" data-hovercard-type="issue" data-hovercard-url="/numpy/numpy/issues/12028/hovercard" href="https://github.com/numpy/numpy/issues/12028">#12028</a>.</p>
<h3 dir="auto">Reproducing code example:</h3>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span></pre></div>
<h3 dir="auto">Error message:</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="    Traceback (most recent call last):
      File &quot;/home/trey/script.py&quot;, line 6, in &lt;module&gt;
        import numpy as np
      File &quot;/home/trey/.local/lib/python3.6/site-packages/numpy/__init__.py&quot;, line 142, in &lt;module&gt;
        from . import core
      File &quot;/home/trey/.local/lib/python3.6/site-packages/numpy/core/__init__.py&quot;, line 59, in &lt;module&gt;
        from . import numeric
      File &quot;/home/trey/.local/lib/python3.6/site-packages/numpy/core/numeric.py&quot;, line 3093, in &lt;module&gt;
        from . import fromnumeric
      File &quot;/home/trey/.local/lib/python3.6/site-packages/numpy/core/fromnumeric.py&quot;, line 17, in &lt;module&gt;
        from . import _methods
      File &quot;/home/trey/.local/lib/python3.6/site-packages/numpy/core/_methods.py&quot;, line 158, in &lt;module&gt;
        _NDARRAY_ARRAY_FUNCTION = mu.ndarray.__array_function__
    AttributeError: type object 'numpy.ndarray' has no attribute '__array_function__'"><pre class="notranslate"><code class="notranslate">    Traceback (most recent call last):
      File "/home/trey/script.py", line 6, in &lt;module&gt;
        import numpy as np
      File "/home/trey/.local/lib/python3.6/site-packages/numpy/__init__.py", line 142, in &lt;module&gt;
        from . import core
      File "/home/trey/.local/lib/python3.6/site-packages/numpy/core/__init__.py", line 59, in &lt;module&gt;
        from . import numeric
      File "/home/trey/.local/lib/python3.6/site-packages/numpy/core/numeric.py", line 3093, in &lt;module&gt;
        from . import fromnumeric
      File "/home/trey/.local/lib/python3.6/site-packages/numpy/core/fromnumeric.py", line 17, in &lt;module&gt;
        from . import _methods
      File "/home/trey/.local/lib/python3.6/site-packages/numpy/core/_methods.py", line 158, in &lt;module&gt;
        _NDARRAY_ARRAY_FUNCTION = mu.ndarray.__array_function__
    AttributeError: type object 'numpy.ndarray' has no attribute '__array_function__'
</code></pre></div>
<h3 dir="auto">Numpy/Python version information:</h3>
<p dir="auto">1.16.0<br>
3.6.7 (default, Oct 22 2018, 11:32:17)<br>
[GCC 8.2.0]</p>