zepen / predict_Lottery_ticket

双色球+大乐透彩票AI预测
764 stars 387 forks source link

小白问个问题 can not import name dtensor #57

Closed goodman777 closed 2 years ago

goodman777 commented 2 years ago

在安装完依赖后,运行train model 报错

thxwork commented 2 years ago

我也是

pythonlw commented 2 years ago

版本问题,可以参考一下版本 Flask==2.0.3 Jinja2==3.1.1 tensorflow-cpu==2.6.1 tensorflow-addons==0.14.0 requests==2.22.0 keras==2.6.0 beautifulsoup4==4.9.3 pandas==1.0.0 numpy==1.19.5 lxml==4.6.2 gunicorn==20.1.0 gevent==1.4.0 loguru==0.6.0 grpcio==1.46.0 protobuf==3.18.1

lujiaweicy commented 2 years ago

报错是因为[keras]版本太高,需要降低到和tensorflow版本一致, pip install keras==2.6.0

zepen commented 2 years ago

报错是因为[keras]版本太高,需要降低到和tensorflow版本一致, pip install keras==2.6.0

正解

fei15115 commented 2 years ago

您好,我已经收到您的邮件,我会尽快查看回复,谢谢!