WINDOWS7/10 Anaconda->theano->keras Installation

Source: Internet
Author: User
Tags theano keras

Installation Process Reference Blog 1
Installation Process Reference Blog 2
No GPU acceleration is configured (better GPU to say)
Important steps:
First, before unloading the version
Uninstall the python, Anaconda, etc. that were previously installed separately. The anaconda contains Python. Pay attention to emptying the relevant environment variables;
Second, install Anaconda
Anaconda chose it because it built Python, as well as the NumPy, scipy two necessary libraries, and some other libraries, which were less convenient than the installation itself. If you want to install python3.4, download the corresponding anaconda3,python2.7 corresponding Anaconda2;
The installation directory can select C:\Anaconda. There may be 360 interception in the middle, all allowed;
Iii. installation of MinGW
The best way to do this is to use the command line to install:
1, open cmd
2, in the CMD default path, the input Conda install MinGW Libpython, then enter the operation, will appear the installation progress, wait a moment to install complete. There's a C:\Anaconda\MinGw directory right now.
IV. Configuring environment variables
1, edit the system variable in the path variable (if not on the new one, general will have), appended C:\Anaconda; C:\Anaconda\Scripts; Do not omit the semicolon, here because my Anaconda installation directory is C:\Anaconda, it needs to be completed according to its own installation directory.
2, the new variable Pythonpath in the user variable, the value of the variable is C:\Anaconda\Lib\site-packages\theano; , here is to indicate the installation of the Theano directory is, but now we have not installed, so do not worry, first finished.
3, open cmd, will see the window inside there is a path, my is c:\users\lichao&gt, according to their own path, find the corresponding directory, in the directory to create a new text document. Theanorc.txt (Note that there are two ".", but also note that TXT file, Some systems hide the suffix name, resulting in txt repetition), edit it, and write the following:
[Global]
Openmp=false
[Blas]
ldflags=
[GCC]
Cxxflags=-ic:\anaconda\mingw
The red body Word part is the path that you install Anaconda, must not be mistaken. Otherwise I can't find MinGW.
4, restart the computer
V. Installation of Theano
It is easiest to install directly using the command line:
1. Open cmd
2, input pip install Theano, after the return is pleasing to download the progress bar, this is very small, so the installation is relatively fast.
3, in cmd, input python into the Python environment, and then enter import Theano carriage return, need to wait for some time.
Vi. installation of Keras
Keras This library on the basis of Theano continue to encapsulate, modular better;
It is easiest to install directly using the command line:
1. Open cmd
2, input pip install Keras, and then wait for installation can be completed
3, in cmd, input python into the Python environment, and then enter import Keras return, return
Using Theano Backend

Vii. Keras Back-end switching (Theano or TensorFlow)
The newly installed Keras will find that the default backend is TensorFlow, if you want to switch to, see ANO, refer to

Successful installation!!!

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.