title: module 'numpy.distutils.__config__' has no attribute 'blas_opt_info'
body: <p>I'm trying to study the neural-network-and-deep-learning (<a href="http://neuralnetworksanddeeplearning.com/chap1.html" rel="noreferrer">http://neuralnetworksanddeeplearning.com/chap1.html</a>). Using the updated version for Python 3 by MichalDanielDobrzanski (<a href="https://github.com/MichalDanielDobrzanski/DeepLearningPython" rel="noreferrer">https://github.com/MichalDanielDobrzanski/DeepLearningPython</a>). Tried to run it in my command console and it gives an error below. I've tried uninstalling and reinstalling setuptools, theano, and numpy but none have worked thus far. Any help is very appreciated!!</p>
  <p>Here's the full error log:</p>
  <pre><code>WARNING (theano.configdefaults): g++ not available, if using conda: `conda install m2w64-toolchain`
  C:\Users\ASUS\AppData\Local\Programs\Python\Python39\lib\site-packages\theano\configdefaults.py:560: UserWarning: DeprecationWarning: there is no c++ compiler.This is deprecated and with Theano 0.11 a c++ compiler will be mandatory
    warnings.warn(&quot;DeprecationWarning: there is no c++ compiler.&quot;
  WARNING (theano.configdefaults): g++ not detected ! Theano will be unable to execute optimized C-implementations (for both CPU and GPU) and will default to Python implementations. Performance will be severely degraded. To remove this warning, set Theano flags cxx to an empty string.
  Traceback (most recent call last):
    File &quot;C:\Users\ASUS\AppData\Local\Programs\Python\Python39\lib\site-packages\theano\configparser.py&quot;, line 168, in fetch_val_for_key
      return theano_cfg.get(section, option)
    File &quot;C:\Users\ASUS\AppData\Local\Programs\Python\Python39\lib\configparser.py&quot;, line 781, in get
      d = self._unify_values(section, vars)
    File &quot;C:\Users\ASUS\AppData\Local\Programs\Python\Python39\lib\configparser.py&quot;, line 1149, in _unify_values
      raise NoSectionError(section) from None
  configparser.NoSectionError: No section: 'blas'
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File &quot;C:\Users\ASUS\AppData\Local\Programs\Python\Python39\lib\site-packages\theano\configparser.py&quot;, line 327, in __get__
      val_str = fetch_val_for_key(self.fullname,
    File &quot;C:\Users\ASUS\AppData\Local\Programs\Python\Python39\lib\site-packages\theano\configparser.py&quot;, line 172, in fetch_val_for_key
      raise KeyError(key)
  KeyError: 'blas.ldflags'
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File &quot;C:\Users\ASUS\Documents\GitHub\Neural-network-and-deep-learning-but-for-python-3\test.py&quot;, line 156, in &lt;module&gt;
      import network3
    File &quot;C:\Users\ASUS\Documents\GitHub\Neural-network-and-deep-learning-but-for-python-3\network3.py&quot;, line 37, in &lt;module&gt;
      import theano
    File &quot;C:\Users\ASUS\AppData\Local\Programs\Python\Python39\lib\site-packages\theano\__init__.py&quot;, line 124, in &lt;module&gt;
      from theano.scan_module import (scan, map, reduce, foldl, foldr, clone,
    File &quot;C:\Users\ASUS\AppData\Local\Programs\Python\Python39\lib\site-packages\theano\scan_module\__init__.py&quot;, line 41, in &lt;module&gt;
      from theano.scan_module import scan_opt
    File &quot;C:\Users\ASUS\AppData\Local\Programs\Python\Python39\lib\site-packages\theano\scan_module\scan_opt.py&quot;, line 60, in &lt;module&gt;
      from theano import tensor, scalar
    File &quot;C:\Users\ASUS\AppData\Local\Programs\Python\Python39\lib\site-packages\theano\tensor\__init__.py&quot;, line 17, in &lt;module&gt;
      from theano.tensor import blas
    File &quot;C:\Users\ASUS\AppData\Local\Programs\Python\Python39\lib\site-packages\theano\tensor\blas.py&quot;, line 155, in &lt;module&gt;
      from theano.tensor.blas_headers import blas_header_text
    File &quot;C:\Users\ASUS\AppData\Local\Programs\Python\Python39\lib\site-packages\theano\tensor\blas_headers.py&quot;, line 987, in &lt;module&gt;
      if not config.blas.ldflags:
    File &quot;C:\Users\ASUS\AppData\Local\Programs\Python\Python39\lib\site-packages\theano\configparser.py&quot;, line 332, in __get__
      val_str = self.default()
    File &quot;C:\Users\ASUS\AppData\Local\Programs\Python\Python39\lib\site-packages\theano\configdefaults.py&quot;, line 1284, in default_blas_ldflags
      blas_info = np.distutils.__config__.blas_opt_info
  AttributeError: module 'numpy.distutils.__config__' has no attribute 'blas_opt_info'
  </code></pre>