日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

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

發布時間:2025/3/21 编程问答 25 豆豆
生活随笔 收集整理的這篇文章主要介紹了 成功解决AttributeError: type object 'scipy.interpolate.interpnd.array' has no attribute '__reduce_cython 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

成功解決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的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。