zoukankan      html  css  js  c++  java
  • win10 安装keras

    1.安装Python环境

    建议安装Anconda3 ,4.2.0版本

    下载地址:

    https://repo.continuum.io/archive/index.html

    https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/?C=N&O=D

    安装即可,记得全部勾选

    2.Keras 安装 

    >>> pip install keras -U --pre

    3.安装tensorflow

    GPU 版本 

    >>> pip install --upgrade tensorflow-gpu

    CPU 版本 

    >>> pip install --upgrade tensorflow

     4.验证keras是否安装成功,在命令行中输入Python命令进入Python变成命令行环境(这是cpu版本)

    C:Usersmmm>python
    Python 3.5.2 |Anaconda 4.2.0 (64-bit)| (default, Jul  5 2016, 11:41:13) [MSC v.1900 64 bit (AMD64)] on win32
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import keras
    Using TensorFlow backend.
    >>>

    没有报错,那么Keras就已经成功安装了。

    5.Keras中mnist数据集测试 下载Keras开发包

    >>> conda install git
    >>> git clone https://github.com/fchollet/keras.git
    >>> cd keras/examples/
    >>> python mnist_mlp.py

    程序无错进行,至此,keras安装完成。

    参考:

    https://developer.nvidia.com/cuda-80-ga2-download-archive

    https://repo.continuum.io/archive/index.html

    https://blog.csdn.net/yuejisuo1948/article/details/81043823

    https://keras-cn.readthedocs.io/en/latest/for_beginners/keras_windows/#keras

    https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/?C=N&O=D

    https://developer.nvidia.com/cudnn

    https://www.anaconda.com/distribution/

  • 相关阅读:
    hdu 2647 (拓扑)
    iOS 陀螺仪
    GetMessage()函数使用时的注意
    Button按钮释放时的事件
    深入理解递归:全排列问题
    json实现jsp分页
    EJB事务管理bug修改记
    hdu1159Common Subsequence
    HDOJ 4512 吉哥系列故事——完美队形I
    随机生成长度为100的数组,数组元素为1到10,统计出现次数最多和最少的元素
  • 原文地址:https://www.cnblogs.com/sea-stream/p/10415992.html
Copyright © 2011-2022 走看看