![](/uploads/1/2/5/8/125855587/253174545.jpg)
Bleeding-edge install instructions¶
Master Tests Status:
If you are a developer of Theano, then check out the Developer Start Guide.
Mac OS Installation Instructions. There are various ways to install Theano dependencies on a Mac. Here we describe the process in detail with Anaconda, Homebrew or MacPorts but if you did it differently and it worked. Pydot-ng To handle large picture for gif/images. Many Mac users are still unaware that you can install Windows 10 on Mac for free from Microsoft perfectly legally. Microsoft doesn’t actually require users to activate Windows 10 with a product key unless you want to customize the look of it.
If you want the bleeding-edge without developing the code you can use pip forthis with the command line below. Note that it will also try to install Theano’s dependencies(like NumPy and SciPy), but not upgrade them. If you wish to upgrade them,remove the --no-deps switch to it, but go see a previous warning before doing this.
or (if you want to install it for the current user only):
The following are general instructions that will set you up with thebleeding-edge version of Theano and allow you to hack it. First,get the code using Git:
From here, the easiest way to get started is (this requires setuptools or distribute to be installed):
Note
“python setup.py develop ...” does not work on Python 3 as it does not callthe converter from Python 2 code to Python 3 code.
This will install a .pth file in your site-packages directory thattells Python where to look for your Theano installation (i.e. in thedirectory your just checked out of Github). Using develop mode ispreferable to install as any modifications you make in the checkoutdirectory (or changes you pull with Git) will be automatically reflectedin the “installed” version without re-running pythonsetup.pyinstall.
If you do not have permission to modify your site-packages directory youcan specify an alternative installation prefix using
A common choice is ~/.local which is automatically searched for Python >=2.6; for earlier Python versions and other installation prefixes, the prefixspecified must contain lib/pythonA.B/site-packages, where A.B is e.g.2.5, and this site-packages directory must be listed in PYTHONPATH.
An alternative, perhaps simpler way of creating and using an isolatedsite-packages is to use virtualenv; see the virtualenv documentationfor details. If you find yourself using virtualenv frequently you may find thevirtualenvwrapper package useful for switching between them.
Configuring PYTHONPATH¶
If importtheano does not work in Python, you may need modify theenvironment variable PYTHONPATH accordingly.In bash, you may do this:
In csh:
To make this change stick you will usually need to add the above command toyour shell’s startup script, i.e. ~/.bashrc or ~/.cshrc.Consult your shell’s documentation for details.
Updating¶
To update your library to the latest revision, change directory (cd)to your Theano folder and execute the following command:
![Install pydot and graphviz windows Install pydot and graphviz windows](/uploads/1/2/5/8/125855587/100707046.png)
You should update frequently, bugs are fixed on a very regular basis.
![](/uploads/1/2/5/8/125855587/253174545.jpg)