Windows installation Keras Framework

Source: Internet
Author: User
Tags virtual environment keras

  • When you install Keras,import Keras with Pip after the normal installation completes Python 2.7, you will be prompted not to

  • TensorFlow initially does not support Windows environments and is now compatible with Windows, but requires Python 3. The installation steps are as follows:

  • Install the Anaconda link first: https://www.anaconda.com/download/download the Windows 2.7 version and install it directly after the download is complete.

  • I want to be able to run Python 2.7 locally, and also use Python 3.5.2 to TensorFlow. It turns out that people from continuum (the creator of the Anaconda package) are already covered! With Anaconda's Conda command, you can set up a virtual environment for a separate Python version, perfect! Continue to download Anaconda from their website (note: Your download of Anaconda Python version is not important!) I have personally downloaded the Python version 2.7, which is the daily version I will use)

  • Your anaconda version is already installed? Okay, now. Open a command prompt and run this command (make sure that you run the command prompt as an administrator, or you may get permission denied errors):  
    conda create-n python3 python=3.5.2 Anaconda

  • Now all set, then enter   activate python3   enter "Python–version" to view the version and you will see your command before it is (Python3). Congratulations, you are now running in a Python 3.5.2 environment. (enter "Deactivate" to close the virtual environment session, you will get the Python version installed in the original Anaconda package, and in my case the 2.7.13 (if you do not get these results, then regret to tell you that the installation failed)).  

  • 7. After entering the Python 3 environment, you can install TensorFlow via PIP.

    pip install --upgrade tensorflowInstalling TensorFlow

    Windows installation Keras Framework

    Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.