Version 14 (modified by Peter Parker, 9 years ago) (diff)

Easy Developer Setup on Windows Using Anaconda

Current Issues

  • For now this is Windows only, though you may try other operating systems if you're happy to use the current versions of all packages.
  • OpenMP is not included in the version of MinGW bundled with Anaconda. Either turn OpenMP off when building (see below), or download your own version of MinGW for now.

Step 1 - Install Anaconda

Download the latest Windows 32-Bit Python 2.7 Installer from and run it.

  • The recommended destination folder is as good as any. If you deviate from this then it's probably worthwhile to make sure the path is short and contains no spaces.
  • At the Advanced Options screen, you need to consider whether or not you want to make Anaconda your default version of Python. Developers who do not work on multiple Python projects can just accept the defaults here.

Step 2 - Install Dependancies

Add the channel containing extra dependencies needed by SasView?:

conda config --add channels

If you are behind a proxy, you need to tell Conda about it. Add the following to your .condarc file which is at C:/Users/YourUserName/.condarc:

# This example should work for the proxy at RAL:

Install all the SasView? dependencies we need:

conda install --yes pylint matplotlib scipy pyparsing html5lib wxpython reportlab lxml PIL setuptools numpy comtypes pywin32 py2exe pisa periodictable bumps numpy sphinx unittest-xml-reporting

Step 3 - Install SVN (Soon to be Git!)

Download and install the latest version of SVN from

Step 4 - Download the SasView? Source Code

svn checkout sasview-code # GitHub
svn checkout sasview-code # SourceForge
cd sasview-code

Step 5 - Check that the Right Version of Python is Being Used

Ask your console which versions of Python it can find:

where python

Hopefully, the first python installation in the list is the recently-installed Anaconda version. If not, you have two options:

  1. Whenever you call python on the command line from now on, use the fully resolved path, e.g.:
  1. Reorder your PATH/Path environment variables so that the Anaconda installation of Python appears BEFORE all the others. Environment variables can be modified by pressing the windows key, typing "edit the system environment variables" and hitting Enter. The built-in Windows way of doing this is not very nice. An easier way to edit environment variables is by installing RapidEE.

Some things to consider:

  • Installations of McStas? might cause problems. If the installation of Python that comes bundled with McStas? appears in the PATH before Anaconda, then the solution is the same as above.
  • Installations of Mantid *should* play nice with Anaconda. Let somebody know if it's causing a problem, though again, just make sure your PATH gives preferential treatment to Anaconda.
  • If you have an old SasView? development environment set up, then you may have an installation of Python2.6 that doesn't play nice with Anaconda. Uninstall it using the Control Panel and it should clear everything up.

Step 6 - Build SasView?

python disable_openmp build -cmingw32

This may end up failing with a large, obscure-looking "...failed with exit status 1" error, which when you scroll up actually ends up being "The command line is too long."

If so, then make sure the C:/AnacondaInstallDir/MinGW/bin folder is at the beginning of your Path environment variable.

Step 7 - Run SasView? from the Code

You should then be able to run SasView? “in-place” from the code, using: