Keras installation in Win10 under Anaconda

Source: Internet
Author: User
Tags theano keras

under the successful installation Anaconda, First, install MinGW: Open prompt-- Input:Conda config--add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/--in input: Conda config--set show_cha Nnel_urls yes-- last input: Conda install MinGW Libpython (so the purpose of the installation is to download more quickly) Second, Open Prompt , you will see a path inside the window, depending on your path, locate the corresponding directory, and create a new text document in the directory. Theanorc.txt (Note that there are two ".", but also note that TXT files, some systems hide the suffix name, resulting in txt duplicates) in the file inside write:  [Global] openmp=false [Blas] ldflags= [GCC] Cxxflags=-ic:\anaconda\mingw (Note: The address under your MinGW folder) again, once installed Theano and Keras, in prompt under pip install Theano and pip Install Keras can complete the installation. about the environment configuration problem, My Computer Create a new variable in a user variable pythonpath, but there is Theano importerror:cannot import name ' Configparser ' problem, online look up the reason to suggest that this configuration is removed. Finally, talk about Keras back-end switching (Theano or TensorFlow) The newly installed Keras will find the default backend is TensorFlow in C:\Users\miclover ( Miclover is my windos user name) there's a folder under it. . Keras , Inside there Keras.json file, change the contents of the inside is good, if there is no folder and files, manually created on the line. { " Image_data_format": "Channels_first", " floatx": "Float32", "Epsilon": 1e-07, " backend": "Theano" } at this point, the installation is complete.
Reference Blog: http://www.cnblogs.com/CQUTWH/p/5974685.html http://blog.csdn.net/thinking_boy1992/article/details/53256602

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.