程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
您现在的位置: 程式師世界 >> 編程語言 >  >> 更多編程語言 >> Python

Python reports an error. Why

編輯:Python

Why is this , No errors found , Please give advice or comments

C:\Users\iamat\AppData\Local\Programs\Python\Python39\python.exe "E:/Python-demo/MachineLearning-master/MachineLearning-master/DeepLearning Tutorials/FaceRecognition_CNN(olivettifaces)/use_CNN_olivettifaces.py"WARNING (theano.configdefaults): g++ not available, if using conda: `conda install m2w64-toolchain`C:\Users\iamat\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\iamat\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\iamat\AppData\Local\Programs\Python\Python39\lib\configparser.py", line 781, in get d = self._unify_values(section, vars) File "C:\Users\iamat\AppData\Local\Programs\Python\Python39\lib\configparser.py", line 1149, in _unify_values raise NoSectionError(section) from Noneconfigparser.NoSectionError: No section: 'blas'During handling of the above exception, another exception occurred:Traceback (most recent call last): File "C:\Users\iamat\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\iamat\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 "E:\Python-demo\MachineLearning-master\MachineLearning-master\DeepLearning Tutorials\FaceRecognition_CNN(olivettifaces)\use_CNN_olivettifaces.py", line 19, in <module> import theano File "C:\Users\iamat\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\iamat\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\iamat\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\iamat\AppData\Local\Programs\Python\Python39\lib\site-packages\theano\tensor\__init__.py", line 17, in <module> from theano.tensor import blas File "C:\Users\iamat\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\iamat\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\iamat\AppData\Local\Programs\Python\Python39\lib\site-packages\theano\configparser.py", line 332, in __get__ val_str = self.default() File "C:\Users\iamat\AppData\Local\Programs\Python\Python39\lib\site-packages\theano\configdefaults.py", line 1284, in default_blas_ldflags blas_info = np.distutils.__config__.blas_opt_infoAttributeError: module 'numpy.distutils.__config__' has no attribute 'blas_opt_info'Process finished with exit code 1

  1. 上一篇文章:
  2. 下一篇文章:
Copyright © 程式師世界 All Rights Reserved