Python3.6.5安装Keras
Pyhton3.6.5 安装Keras之旅-成功首先要先安装好tensorflow,安装过程:https://blog.csdn.net/weixin_52500860/article/details/115839580打开Anaconda prompt没有anaconda也需要提前安装哦!激活tensorflow命令:activate tensorflowconda install mingw
·
Pyhton3.6.5 安装Keras之旅-成功
首先要先安装好tensorflow,安装过程:https://blog.csdn.net/weixin_52500860/article/details/115839580
- 打开Anaconda prompt
没有anaconda也需要提前安装哦! - 激活tensorflow
命令:activate tensorflow
- conda install mingw libpython
pip install theano
- 上面步骤完成之后不要直接:pip install keras,即使安装成功也会出现错误:
把keras降到2.2,依然错误:
版本不匹配
成功示范:
pip install keras==2.3.1 -i https://pypi.douban.com/simple
安装成功:
- 验证是否有效
命令:python
import keras
错误解决:
1.安装keras,tensorflow时出现的错误:
ERROR: pip’s dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
tensorflow 2.0.0 requireskeras-applications>=1.0.8, but you have keras-applications 1.0.2 which is incompatible.
tensorflow 2.0.0 requireskeras-preprocessing>=1.0.5, but you have keras-preprocessing 1.0.1 which is incompatible
解决方案:示例:
pip install keras-applications
单独下载即可
更多推荐
所有评论(0)