Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

722
Vistas
el módulo 'numpy.distutils.__config__' no tiene el atributo 'blas_opt_info'

Estoy tratando de estudiar la red neuronal y el aprendizaje profundo ( http://neuralnetworksanddeeplearning.com/chap1.html ). Usando la versión actualizada para Python 3 de MichalDanielDobrzanski ( https://github.com/MichalDanielDobrzanski/DeepLearningPython ). Intenté ejecutarlo en mi consola de comandos y da un error a continuación. Intenté desinstalar y reinstalar setuptools, theano y numpy, pero ninguno funcionó hasta ahora. ¡¡Se agradece mucho cualquier ayuda!!

Aquí está el registro de errores completo:

 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("DeprecationWarning: there is no c++ compiler." 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 "C:\Users\ASUS\AppData\Local\Programs\Python\Python39\lib\site-packages\theano\configparser.py", line 168, in fetch_val_for_key return theano_cfg.get(section, option) File "C:\Users\ASUS\AppData\Local\Programs\Python\Python39\lib\configparser.py", line 781, in get d = self._unify_values(section, vars) File "C:\Users\ASUS\AppData\Local\Programs\Python\Python39\lib\configparser.py", 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 "C:\Users\ASUS\AppData\Local\Programs\Python\Python39\lib\site-packages\theano\configparser.py", line 327, in __get__ val_str = fetch_val_for_key(self.fullname, File "C:\Users\ASUS\AppData\Local\Programs\Python\Python39\lib\site-packages\theano\configparser.py", 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 "C:\Users\ASUS\Documents\GitHub\Neural-network-and-deep-learning-but-for-python-3\test.py", line 156, in <module> import network3 File "C:\Users\ASUS\Documents\GitHub\Neural-network-and-deep-learning-but-for-python-3\network3.py", line 37, in <module> import theano File "C:\Users\ASUS\AppData\Local\Programs\Python\Python39\lib\site-packages\theano\__init__.py", line 124, in <module> from theano.scan_module import (scan, map, reduce, foldl, foldr, clone, File "C:\Users\ASUS\AppData\Local\Programs\Python\Python39\lib\site-packages\theano\scan_module\__init__.py", line 41, in <module> from theano.scan_module import scan_opt File "C:\Users\ASUS\AppData\Local\Programs\Python\Python39\lib\site-packages\theano\scan_module\scan_opt.py", line 60, in <module> from theano import tensor, scalar File "C:\Users\ASUS\AppData\Local\Programs\Python\Python39\lib\site-packages\theano\tensor\__init__.py", line 17, in <module> from theano.tensor import blas File "C:\Users\ASUS\AppData\Local\Programs\Python\Python39\lib\site-packages\theano\tensor\blas.py", line 155, in <module> from theano.tensor.blas_headers import blas_header_text File "C:\Users\ASUS\AppData\Local\Programs\Python\Python39\lib\site-packages\theano\tensor\blas_headers.py", line 987, in <module> if not config.blas.ldflags: File "C:\Users\ASUS\AppData\Local\Programs\Python\Python39\lib\site-packages\theano\configparser.py", line 332, in __get__ val_str = self.default() File "C:\Users\ASUS\AppData\Local\Programs\Python\Python39\lib\site-packages\theano\configdefaults.py", 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'
over 4 years ago · Santiago Trujillo
2 Respuestas
Responde la pregunta

0

Tuve el mismo problema y lo resolví degradando numpy a la versión 1.20.3 mediante:

 pip3 install --upgrade numpy==1.20.3
over 4 years ago · Santiago Trujillo Denunciar

0

Información adicional:

theano es un paquete obsoleto y no debe usarse con versiones modernas de numpy. Sin embargo, algunos códigos base heredados usarán theano , por lo que se necesitará la solución de degradar numpy <1.22 como en la respuesta aceptada. La obsolescencia se realizó en numpy 1.22: consulte el problema numpy #21079 .

Si uno necesita quedarse con numpy 1.22+, blas_opt_info se encuentra en numpy.distutils.system_info.blas_opt_info , por lo que parchear manualmente theano para usar el símbolo correcto sería otra solución.

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda