成功解决AttributeError: type object 'scipy.interpolate.interpnd.array' has no attribute '__reduce_cython

目录

解决问题

解决思路

解决方法


解决问题

File "stringsource", line 104, in init scipy.interpolate.interpnd

AttributeError: type object 'scipy.interpolate.interpnd.array' has no attribute '__reduce_cython__'

Traceback (most recent call last):File "CV_Object2.py", line 22, in <module>File "<frozen importlib._bootstrap>", line 971, in _find_and_loadFile "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlockedFile "<frozen importlib._bootstrap>", line 665, in _load_unlockedFile "f:\program files\python\python36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_moduleexec(bytecode, module.__dict__)File "yolo.py", line 13, in <module>File "<frozen importlib._bootstrap>", line 971, in _find_and_loadFile "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlockedFile "<frozen importlib._bootstrap>", line 665, in _load_unlockedFile "f:\program files\python\python36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_moduleexec(bytecode, module.__dict__)File "keras\__init__.py", line 7, in <module>File "<frozen importlib._bootstrap>", line 971, in _find_and_loadFile "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlockedFile "<frozen importlib._bootstrap>", line 665, in _load_unlockedFile "f:\program files\python\python36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_moduleexec(bytecode, module.__dict__)File "keras\datasets\__init__.py", line 4, in <module>File "<frozen importlib._bootstrap>", line 971, in _find_and_loadFile "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlockedFile "<frozen importlib._bootstrap>", line 665, in _load_unlockedFile "f:\program files\python\python36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_moduleexec(bytecode, module.__dict__)File "keras\datasets\imdb.py", line 8, in <module>File "<frozen importlib._bootstrap>", line 971, in _find_and_loadFile "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlockedFile "<frozen importlib._bootstrap>", line 665, in _load_unlockedFile "f:\program files\python\python36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_moduleexec(bytecode, module.__dict__)File "keras\preprocessing\__init__.py", line 12, in <module>File "<frozen importlib._bootstrap>", line 971, in _find_and_loadFile "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlockedFile "<frozen importlib._bootstrap>", line 665, in _load_unlockedFile "f:\program files\python\python36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_moduleexec(bytecode, module.__dict__)File "keras\preprocessing\image.py", line 7, in <module>File "<frozen importlib._bootstrap>", line 971, in _find_and_loadFile "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlockedFile "<frozen importlib._bootstrap>", line 665, in _load_unlockedFile "f:\program files\python\python36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_moduleexec(bytecode, module.__dict__)File "keras_preprocessing\image.py", line 10, in <module>File "<frozen importlib._bootstrap>", line 971, in _find_and_loadFile "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlockedFile "<frozen importlib._bootstrap>", line 665, in _load_unlockedFile "f:\program files\python\python36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_moduleexec(bytecode, module.__dict__)File "scipy\ndimage\__init__.py", line 161, in <module>File "<frozen importlib._bootstrap>", line 971, in _find_and_loadFile "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlockedFile "<frozen importlib._bootstrap>", line 665, in _load_unlockedFile "f:\program files\python\python36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_moduleexec(bytecode, module.__dict__)File "scipy\ndimage\filters.py", line 38, in <module>File "<frozen importlib._bootstrap>", line 971, in _find_and_loadFile "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlockedFile "<frozen importlib._bootstrap>", line 665, in _load_unlockedFile "f:\program files\python\python36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_moduleexec(bytecode, module.__dict__)File "scipy\ndimage\_ni_docstrings.py", line 4, in <module>File "<frozen importlib._bootstrap>", line 971, in _find_and_loadFile "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlockedFile "<frozen importlib._bootstrap>", line 665, in _load_unlockedFile "f:\program files\python\python36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_moduleexec(bytecode, module.__dict__)File "scipy\misc\__init__.py", line 68, in <module>File "<frozen importlib._bootstrap>", line 971, in _find_and_loadFile "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlockedFile "<frozen importlib._bootstrap>", line 665, in _load_unlockedFile "f:\program files\python\python36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_moduleexec(bytecode, module.__dict__)File "scipy\interpolate\__init__.py", line 175, in <module>File "<frozen importlib._bootstrap>", line 971, in _find_and_loadFile "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlockedFile "<frozen importlib._bootstrap>", line 665, in _load_unlockedFile "f:\program files\python\python36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_moduleexec(bytecode, module.__dict__)File "scipy\interpolate\interpolate.py", line 32, in <module>File "<frozen importlib._bootstrap>", line 971, in _find_and_loadFile "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlockedFile "<frozen importlib._bootstrap>", line 656, in _load_unlockedFile "<frozen importlib._bootstrap>", line 626, in _load_backward_compatibleFile "f:\program files\python\python36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 714, in load_modulemodule = loader.load_module(fullname)File "stringsource", line 104, in init scipy.interpolate.interpnd
AttributeError: type object 'scipy.interpolate.interpnd.array' has no attribute '__reduce_cython__'
[11956] Failed to execute script CV_Object2

解决思路

文件“stringsource”,第104行,在init scipy.interpolate.interpnd中
属性错误:类型对象“scipy.interpolate.interpnd.array”没有属性“uuReduce_Cython_uuuuuuu”

解决方法


调整scipy、cython库

yeah ! version scipy-0.19.1-py3.6.egg-info

  File "f:\program files\python\python36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 714, in load_modulemodule = loader.load_module(fullname)File "stringsource", line 103, in init scipy.optimize._trlib._trlib
AttributeError: type object 'scipy.optimize._trlib._trlib.array' has no attribute '__reduce_cython__'
[3540] Failed to execute script CV_Object2C:\Users\99386>pip show cython
Name: Cython
Version: 0.28.3
Summary: The Cython compiler for writing C extensions for the Python language.
Home-page: http://cython.org/
Author: Robert Bradshaw, Stefan Behnel, Dag Seljebotn, Greg Ewing, et al.
Author-email: cython-devel@python.org
License: Apache
Location: f:\program files\python\python36\lib\site-packages
Requires:
Required-by:C:\Users\99386>pip show scipy
Name: scipy
Version: 1.0.0
Summary: SciPy: Scientific Library for Python
Home-page: https://www.scipy.org
Author: SciPy Developers
Author-email: scipy-dev@python.org
License: BSD
Location: f:\program files\python\python36\lib\site-packages
Requires: numpy
Required-by: Keras, Keras-Preprocessing, imgaug, face-recognitionC:\Users\99386>pip install --upgrade scipy
Collecting scipyUsing cached https://files.pythonhosted.org/packages/62/e2/364f0bcc641aeff79d743c732769d5dc31a1e78c27699229431412c4b425/scipy-1.1.0-cp36-none-win_amd64.whl
Requirement not upgraded as not directly required: numpy>=1.8.2 in f:\program files\python\python36\lib\site-packages (from scipy) (1.15.0rc1+mkl)
tensorflow-gpu 1.4.0 requires enum34>=1.1.6, which is not installed.
wxpy 0.3.9.8 has requirement itchat==1.2.32, but you'll have itchat 1.3.10 which is incompatible.
moviepy 0.2.3.2 has requirement decorator==4.0.11, but you'll have decorator 4.3.0 which is incompatible.
Installing collected packages: scipyFound existing installation: scipy 1.0.0Uninstalling scipy-1.0.0:Successfully uninstalled scipy-1.0.0
Successfully installed scipy-1.1.0

相关文章
scipy.optimize._trlib._trlib.array' has no attribute '__reduce_cython__' when using pyinstaller
no attribute __reduce_cython__ #1953

成功解决AttributeError: type object 'scipy.interpolate.interpnd.array' has no attribute '__reduce_cython相关推荐

  1. 成功解决AttributeError: type object ‘h5py.h5r.Reference‘ has no attribute ‘__reduce_cython__‘

    成功解决AttributeError: type object 'h5py.h5r.Reference' has no attribute '__reduce_cython__' 目录 解决问题 解决 ...

  2. 成功解决AttributeError: ‘DataFrame‘ object has no attribute ‘tolist‘

    成功解决AttributeError: 'DataFrame' object has no attribute 'tolist' 目录 解决问题 解决思路 解决方法 解决问题 return objec ...

  3. 成功解决AttributeError: ‘NoneType‘ object has no attribute ‘shape‘

    成功解决AttributeError: 'NoneType' object has no attribute 'shape' 目录 解决问题 解决思路 解决方法 解决问题 multiplier = [ ...

  4. 成功解决AttributeError: ‘Series‘ object has no attribute ‘name’

    成功解决AttributeError: 'Series' object has no attribute 'name' 目录 解决问题 解决思路 解决方法 解决问题 AttributeError: ' ...

  5. 成功解决AttributeError: ‘Series‘ object has no attribute ‘columns‘

    成功解决AttributeError: 'Series' object has no attribute 'columns' 目录 解决问题 解决思路 解决方法 解决问题 AttributeError ...

  6. 成功解决AttributeError: ‘int‘ object has no attribute ‘encode‘

    成功解决AttributeError: 'int' object has no attribute 'encode' 目录 解决问题 解决思路 解决方法 解决问题 AttributeError: 'i ...

  7. 成功解决AttributeError: ‘PathCollection‘ object has no property ‘n_levels‘

    成功解决AttributeError: 'PathCollection' object has no property 'n_levels' 目录 解决问题 解决思路 解决方法 解决问题 Attrib ...

  8. 成功解决AttributeError: ‘JointGrid‘ object has no attribute ‘annotate‘

    成功解决AttributeError: 'JointGrid' object has no attribute 'annotate' 目录 解决问题 解决思路 解决方法 解决问题 Traceback ...

  9. 成功解决AttributeError : ‘GridSearchCV‘ object has no attribute ‘grid_scores_‘

    成功解决AttributeError : 'GridSearchCV' object has no attribute 'grid_scores_' 目录 解决问题 解决思路 解决方法 解决问题 At ...

最新文章

  1. 安全领域多位世界级权威的智慧结晶——《黑客新型攻击防范:深入剖析犯罪软件》
  2. 大学老师称古风歌词“狗屁不通”,遭粉丝围攻:回家葬母吧
  3. golang安装beego报错:go: cannot use path@version syntax in GOPATH mode
  4. 机器学习中的无监督学习_无监督机器学习中聚类背后的直觉
  5. apache启动错误 AH00072: make_sock: could not bind to address [::]:443
  6. [要记的]excel中把字母变为数字
  7. ELF(Executable Linkable Format)文件存储格式
  8. LeetCode 1114. 按序打印
  9. js 添加事件 attachEvent 和addEventListener 的用法
  10. python3 自动识图
  11. DMA控制器原理详解
  12. QT-C++ 注册机软件,生成机器码和注册码,支持授权时间
  13. recordcount=-1的原因以及解决方法
  14. GraphicsView学习-内容介绍(1)
  15. becon帧 wifi_构造并发送Beacon帧以伪造任意WiFi热点
  16. 如何在Mac电脑中使用键盘移动操作鼠标焦点?如何在Mac中打开辅助键盘?
  17. Java中的Timer 怎么暂停,如何暂停Java.uti.Timer?
  18. UIQ3.0系列--在模拟器上显示中文
  19. 【剧透高亮】最最最完整剧透加剧情详细解析
  20. 离散数学班委竞选问题用python程序实现(课本p45.30)

热门文章

  1. 最新 MSDN Library for Visual Studio 2008 SP1
  2. Angular组件--动态组件
  3. shell脚本安装mysql并安装一个小服务
  4. Mybatis:传输多个参数
  5. python实现WebsocketServer 服务端
  6. 也许90%的人都没有真正搞懂性能优化
  7. 如何用 Git 优雅回退代码,别搞错了!
  8. 拜托,面试别再问我表达式求值了!!!
  9. 真正理解 MySQL 的四种隔离级别
  10. AutoBench+Httperf的安装、测试