<h2 dir="auto">Documentation</h2>
Note that I am using the Python Idle here. Since I do not use any IDE, I suspect that this problem is caused by Numpy, and not by an editor.
<p dir="auto">I successfully uninstalled Numpy version 1.19.4, and installed Numpy version 1.19.3. Rolling back to Numpy 1.19.3 is a temporary fix.</p>
<p dir="auto">The problematic Numpy code seems to be:<br>
<a href="https://github.com/numpy/numpy/files/7078427/How.to.contribute.to.the.NumPy.documentation.docx">How to contribute to the NumPy documentation.docx</a></p>
def _win_os_check():
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&quot;&quot;&quot;
Quick Sanity check for Windows OS: look for fmod bug issue 16744.
&quot;&quot;&quot;
try:
    a = arange(13 * 13, dtype= float64).reshape(13, 13)
    a = a % 17  # calls fmod
    linalg.eig(a)
except Exception:
    msg = (&quot;The current Numpy installation ({!r}) fails to &quot;
            &quot;pass a sanity check due to a bug in the windows runtime. &quot;
            &quot;See this issue for more information: &quot;
            &quot;https://developercommunity.visualstudio.com/content/problem/1207405/fmod-after-an-update-to-windows-2004-is-causing-a.html&quot;)
    raise RuntimeError(msg.format(__file__)) from None

    if sys.platform == &quot;win32&quot; and sys.maxsize &gt; 2**32:
       _win_os_check()

       del _win_os_check"><pre class="notranslate"><code class="notranslate">"""
Quick Sanity check for Windows OS: look for fmod bug issue 16744.
"""
try:
    a = arange(13 * 13, dtype= float64).reshape(13, 13)
    a = a % 17  # calls fmod
    linalg.eig(a)
except Exception:
    msg = ("The current Numpy installation ({!r}) fails to "
            "pass a sanity check due to a bug in the windows runtime. "
            "See this issue for more information: "
            "https://developercommunity.visualstudio.com/content/problem/1207405/fmod-after-an-update-to-windows-2004-is-causing-a.html")
    raise RuntimeError(msg.format(__file__)) from None

    if sys.platform == "win32" and sys.maxsize &gt; 2**32:
       _win_os_check()

       del _win_os_check
</code></pre></div>
<p dir="auto">The newest version of numpy raises an exception when being imported. I am using Python 3.9 64-bit on Windows 10.</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 # raises a RuntimeError"><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> <span class="pl-c"># raises a RuntimeError</span></pre></div>
<h3 dir="auto">Error message:</h3>


<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ python -c &quot;import numpy&quot;
 ** On entry to DGEBAL parameter number  3 had an illegal value
 ** On entry to DGEHRD  parameter number  2 had an illegal value
 ** On entry to DORGHR DORGQR parameter number  2 had an illegal value
 ** On entry to DHSEQR parameter number  4 had an illegal value
Traceback (most recent call last):
  File &quot;&lt;string&gt;&quot;, line 1, in &lt;module&gt;
  File &quot;C:\Users\Song\AppData\Roaming\Python\Python39\site-packages\numpy\__init__.py&quot;, line 305, in &lt;module&gt;
    _win_os_check()
  File &quot;C:\Users\Song\AppData\Roaming\Python\Python39\site-packages\numpy\__init__.py&quot;, line 302, in _win_os_check
    raise RuntimeError(msg.format(__file__)) from None
RuntimeError: The current Numpy installation ('C:\\Users\\Song\\AppData\\Roaming\\Python\\Python39\\site-packages\\numpy\\__init__.py') fails to pass a sanity check due to a bug in the windows runtime. See this issue for more information: https://tinyurl.com/y3dm3h86"><pre class="notranslate"><code class="notranslate">$ python -c "import numpy"
 ** On entry to DGEBAL parameter number  3 had an illegal value
 ** On entry to DGEHRD  parameter number  2 had an illegal value
 ** On entry to DORGHR DORGQR parameter number  2 had an illegal value
 ** On entry to DHSEQR parameter number  4 had an illegal value
Traceback (most recent call last):
  File "&lt;string&gt;", line 1, in &lt;module&gt;
  File "C:\Users\Song\AppData\Roaming\Python\Python39\site-packages\numpy\__init__.py", line 305, in &lt;module&gt;
    _win_os_check()
  File "C:\Users\Song\AppData\Roaming\Python\Python39\site-packages\numpy\__init__.py", line 302, in _win_os_check
    raise RuntimeError(msg.format(__file__)) from None
RuntimeError: The current Numpy installation ('C:\\Users\\Song\\AppData\\Roaming\\Python\\Python39\\site-packages\\numpy\\__init__.py') fails to pass a sanity check due to a bug in the windows runtime. See this issue for more information: https://tinyurl.com/y3dm3h86
</code></pre></div>
<h3 dir="auto">NumPy/Python version information:</h3>
<p dir="auto">NumPy 1.19.4<br>
Python 3.9.0 (3.9.0 (tags/v3.9.0:9cf6752, Oct  5 2020, 15:34:40) [MSC v.1927 64 bit (AMD64)])</p>