I wonder how to install Theano on Anaconda Python 2.7 x64 on Windows 7 x64. The Theano website provides some instructions but is not clear as to what is specific to Anaconda.
相关问题
- How to Debug/Register a Permanent WMI Event Which
- the application was unable to start correctly 0xc0
- Flush single app django 1.9
- How to deploy python flask application in conda ba
- Windows 7: How can I get a list of all Windows use
相关文章
- Is there a size limit for HTTP response headers on
- Does there exist empty class in python?
- ImportError: No module named twisted.persisted.sty
- Get a header with Python and convert in JSON (requ
- Python - Theano scan() function
- python unit testing methods inside of classes
- Requiring tensorflow with Python 2.7.11 occurs Imp
- PygraphViz Import Error With PyCharm
The trick is that YOU NEED TO CREATE AN ENVIRONMENT/WORKSPACE FOR PYTHON. This solution should work for Python 2.7 but at the time of writing keras can run on python 3.5, especially if you have the latest anaconda installed (this took me awhile to figure out so I'll outline the steps I took to install KERAS in python 3.5):
-- CREATE ENVIRONMENT/WORKSPACE FOR PYTHON 3.5:
C:\conda create --name neuralnets python=3.5
C:\activate neuralnets
-- INSTALL EVERYTHING (notice the neuralnets workspace in parenthesis on each line). ACCEPT ANY DEPENDENCIES EACH OF THOSE STEPS WANTS TO INSTALL:
(neuralnets) C:\conda install theano
(neuralnets) C:\conda install mingw libpython
(neuralnets) C:\pip install tensorflow
(neuralnets) C:\pip install keras
-- TEST IT OUT:
Just remember, if you want to work in the workspace you always have to do:
so you can launch Jypiter for example (assuming you also have jypiter installed in this environment/workspace) as:
I'm not 100% certain but this may be a minimal set of instructions, but only if you don't want to use a GPU. Getting Theano to use a GPU on Windows is quite a bit more difficult.
conda update conda
.conda update --all
.conda install mingw libpython
.pip install Theano
.pip install --upgrade --no-deps git+git://github.com/Theano/Theano.git
(see linked documentation for more options)If you want multithreading support via OpenMP then things get more complicated.
If you want GPU support things get much more complicated.
The Windows installation instructions in the Theano documentation are fragmented at best, and terribly out of date at worst. If you need more than the basics working on Windows, you'll need to pick your way through to find an approach that works for you.
Adding GPU support is not that much more complicated (although not intuitive)
Nvidia GPU support (CUDA)
section with the following changes:visual studio 2013 community
instead of the Windows SDK.theanorc
should be placed inC:\Users\USERNAME