title: numpy.linalg.LinAlgError: Singular matrix Error When Trying to Solve
body: <pre><code>import numpy as np
  
  A = np.array([[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12]])
  B = np.array([[1, 2], [3, 4], [5, 6], [7, 8]])
  C = np.array([[1, 2, 3], [4, 5, 6]])
  D = np.array([[1], [2], [3]])
  
  prod_AB = np.matmul(A, B)
  E = np.matmul(prod_AB, C)
  
  x = np.linalg.solve(E, D)
  
  Traceback (most recent call last):
    File &quot;C:/Users/Owner.ASUS-DESKTOP/Documents/ENGR 102/Lab 10/test.py&quot;, line 11, in &lt;module&gt;
      x = np.linalg.solve(E, D)
    File &quot;&lt;__array_function__ internals&gt;&quot;, line 5, in solve
    File &quot;C:\Users\Owner.ASUS-DESKTOP\AppData\Local\Programs\Python\Python38\lib\site-packages\numpy\linalg\linalg.py&quot;, line 394, in solve
      r = gufunc(a, b, signature=signature, extobj=extobj)
    File &quot;C:\Users\Owner.ASUS-DESKTOP\AppData\Local\Programs\Python\Python38\lib\site-packages\numpy\linalg\linalg.py&quot;, line 88, in _raise_linalgerror_singular
      raise LinAlgError(&quot;Singular matrix&quot;)
  numpy.linalg.LinAlgError: Singular matrix
  </code></pre>
  <p>Why is this throwing an error? My colleagues used a different IDE (I am using PyCharm and they are using Anaconda) and there program ran no problem. Is this error IDE dependant?</p>