从Elephas导入SparkModel时遇到以下错误:
from elephas.spark_model import SparkModel
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.7/site-packages/elephas/spark_model.py", line 14, in <module>
from .worker import AsynchronousSparkWorker, SparkWorker
File "/usr/lib/python2.7/site-packages/elephas/worker.py", line 3, in <module>
from keras.utils.generic_utils import slice_arrays
ImportError: cannot import name slice_arrays
我将Pyspark与Spark版本2.3.0和Python版本2.7.5一起使用
请帮助。