Finally successfully configured the Theano environment, but because the machine does not have a GPU, so the configuration of the non-GPU version of Theano, the following describes the specific procedure (after the successful installation, sometimes the various libraries of Python update, may cause a module can not invoke other updated modules, at this time, The simplest way to fool is to reconfigure all environments once.
1. Installing Adaconda
2. Installing MinGW
3. Configuring environment variables related to MinGW
4. Installing Theano
5. Configuring Theano-related environment variables
6. Installing Keras
7. Install Pycharm Community (free)
1. Installing Adaconda
(1) Download Adaconda
(2) Installation Adaconda
Double-click the Adaconda EXE file
Here the path can choose, here Select the Anaconda2 folder under the C drive, but the folder is created by the installer itself, you can not create the folder under the C drive, otherwise it will be an error
In addition, because the anaconda is added to the environment variable during the installation process, the path in the environment variable appears
C:\Anaconda2; C:\Anaconda2\Scripts; C:\Anaconda2\Library\bin;
If this path does not appear in path, manually add these three paths to the path
If the environment is configured correctly, enter Python--version in cmd and the following message appears
(3) Some orders
To view the Python app packages that have been installed: Conda list
2. Installing MinGW
Adaconda2.0.1 before the version comes with MinGW, but the later version does not have MinGW, need to install themselves, the method is as follows:
① Open cmd (note that the Windows command prompt does not go into the python environment, otherwise a syntax error is prompted, because the Conda command is executed under Windows.) )
② input Conda install MinGW Libpython, and then enter, the installation progress will occur, wait a moment to install complete. At this point, there is the C:\Anaconda\MinGw directory.
3. Configuring environment variables related to MinGW
Add path to the following two paths
C:\Anaconda2\MinGW\bin;
C:\Anaconda2\MinGW\x86_64-w64-mingw32\lib;
4. Installing Theano
Open cmd and enter "Pip Install Theano"
5. Configuring Theano-related environment variables
New environment variable Pythonpath, variable value is:C:\Anaconda2\Lib\site-packages\theano;
Test Theano Installation success: Import Theano, no error, Theano installation success
6. Installing Keras
Download Keras on GitHub
In cmd, go to the folder where you downloaded the Keras, and then use the Python setup.py install command Keras
7. Install Pycharm Community (free)
After installing Pycharm, run the Python program, the following error occurred
Then, set the Pycharm as follows to solve the problem
Run the program, appear attributeerror: ' Module ' object has no attribute ' Relu ' error, should be Theano version is too low cause, so, update Theano:pip install--upgrade Theano
How do I install Theano with the command line?
Download Theano on GitHub
Use the command line to enter the Theano folder and install theano:python.py with the python command
Configuring the Installation Theano environment (non-GPU version)