ERROR: Cannot install keras==2.2.0 and tensorflow==1.14.0 because these package versions have confli

ERROR: Cannot install keras2.2.0 and tensorflow1.14.0 because these package versions have conflicting dependencies.

执行操作
pip install -i https://pypi.douban.com/simple tensorflow==1.14 keras==2.2

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-ojdk4JVN-1618540368007)(evernotecid://A7BA1EDC-F70B-4A16-ABAA-EDD379BB023D/appyinxiangcom/29884553/ENResource/p318)]

报错信息
ERROR: Cannot install keras==2.2.0 and tensorflow==1.14.0 because these package versions have conflicting dependencies.

The conflict is caused by:
    keras 2.2.0 depends on keras-preprocessing==1.0.1
    tensorflow 1.14.0 depends on keras-preprocessing>=1.0.5

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies
解决思路
环境依赖出问题,更换下载包版本
解决方法
pip install -i https://pypi.douban.com/simple tensorflow==1.14 keras==2.1

keras 2.1

欢迎大家交流学习,任何问题都可以留言
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值