In order to learn Keras, first have to install good keras, but under Windows, Keras installation really will have a lot of problems. These two days go a lot of detours, finally installed Keras, is based on Theano, now record the installation process, perhaps to their own help.
1. Install Python
Website Download Python3.5 version, this is very simple. After installation, add the Python path and scripts and libs paths to the path.
2. After the installation of Python3.5 first to upgrade the PIP to the latest version, I do not know why I had the PIP is not the latest version, so the PIP installed in addition to a lot of errors, only to know that the PIP version is too low (may be the reason I have installed python2.7 before). Concrete operation into the following:
Just enter at the command line: python-m pip install-u pip This step should not fail as long as the network connection is normal.
3. Install Wheel
Command line enter python-m pip install wheel
I have been prompted to timeout when I install if prompted to time out the PIP--default-timeout=100 install-u pip can modify the default timeout, recommended to change the default timeout time
If the failure can be more than a few times, 7-8 test before success. Help (' modules ') can list all the installed modules to see if wheel has been installed successfully
4. Install MinGW
Go to MinGW's official website download file Ill Install, will minge bin and LIB Add environment variable path inside, install the time g++ and GCC must choose.
5. Install Lapack
Give the download address: http://icl.cs.utk.edu/lapack-for-windows/lapack/
After the download Xiali is a zip file, directly extracted into the MinGW Lib folder, and then add the path, my is: G:\bigdate\MinGW\lib\lapack-3.6.1
6. Installation vs
Install vs2010 later version, just need vs environment. I have before, there is no installation, will not be installed to the internet Baidu a lot.
7. Install Numpy,scipy,theano,keras
It's very simple. Direct command line input: python-m pip install NumPy
python-m pip Install scipy
python-m pip Install Theano
python-m pip Install Keras
These four steps will not fail without an accident.
If NumPy and scipy fail, there are SCIPY-0.18.1-CP35-CP35M-WIN32.WHL and NUMPY-1.11.2+MKL-CP35-CP35M-WIN32.WHL files in the annex, which is now the latest version,
If expired, you can go: http://www.lfd.uci.edu/~gohlke/pythonlibs/This has a lot of Python installation modules, choose the version that fits your computer, download it and put it under the Python installation path, and then kill After the row finds a folder
Enter: Pip install SCIPY-0.18.1-CP35-CP35M-WIN32.WHL then enter pip install NUMPY-1.11.2+MKL-CP35-CP35M-WIN32.WHL. But there is probably a mistake here, because there is no path to specify the file, even if you are already in the current folder entered the command is useless, plus the path should be able to succeed, my is: Pip install E:\Python\ SCIPY-0.18.1-CP35-CP35M-WIN32.WHL.
8. The above should be able to successfully install the Keras, command line input: Python into the Python environment: import numpy
Import scipy
Import Theano
Import Keras
should not be an error, so that the successful installation of the Keras.
If you have questions and questions, please contact me.