[PYTHON] TypeError: Der Datentyp für das Objektarray kann nicht geändert werden.

Eines Tages, als ich matplotlib verwendete, bekam ich diesen Fehler.

File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/lib/stride_tricks.py", line 119, in broadcast_arrays zip(args, shapes, strides)] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/lib/stride_tricks.py", line 32, in as_strided array.dtype = x.dtype TypeError: Cannot change data-type for object array.

Die Neuinstallation von matplotlib löste das Problem. $ pip uninstall matplotlib $ pip install matplotlib

Recommended Posts

TypeError: Der Datentyp für das Objektarray kann nicht geändert werden.
Array-Pufferobjekt, das mit Cython verwendet werden kann