Version 1 (modified by wojciech, 6 years ago) (diff)

Easy Developer Setup Using Anaconda

Step 1 - Install Anaconda

Download the latest 64-Bit Python 2.7 Installer from http://continuum.io/downloads 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 3 - Install Git (or optionally stay with SVN)

Git

Download: http://git-scm.com/download/win

When installing, it may be worthwhile to make sure "Use Git from the Windows Command Prompt" is selected, rather than "Use Git from Bash only". This way you can use git from the same command line as you will use Anaconda.

Set up your credentials:

git config --global user.name "John Doe"
git config --global user.email johndoe@example.com

Step 5 - Download SasView? and sasmodels from github

If you don't have installed go GIT section for instructions, otherwise simply run

git clone https://github.com/SasView/sasview.git sasmodels
git clone https://github.com/SasView/sasmodels.git sasmodels

Step 6 - 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.:
    C:/PathToAnaconda/python
    
  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.