Version 16 (modified by wojciech, 5 years ago) (diff)

Easy Developer Setup Using Anaconda

Step 1 - Install Anaconda

Download the latest 64-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 - Download SasView and sasmodels from github

If you don't have git installed, go to the GIT section below (Step 7) for instructions, otherwise simply run

git clone sasview
git clone sasmodels

Step 3 - Install dependencies using yml files

Go to folder:


and create conda enviroment using yml specific for your platform (needs to be run from top-level not within a conda virtual environment)

conda env create -f sasview-env-build_win.yml

#Mac OSX
conda env create -f sasview-env-build_osx.yml

conda env create -f sasview-env-build_linux.yml

Step 4 - activate conda enviroment

activate sasview

#Mac OSX and Linux
source activate sasview

Step 5 (Windows only) - Install compiler

Some sasview modules requires C compiler. One can choose between different compilers, e.g. gcc, msvc, tinycc. Below are instructions how to install tinycc from SasView? repository:

git clone tinycc
cd tinycc
python build install

Eventually build sasview using tinycc compiler. Go to sasview directory and run

python build --compile=tinycc

Step 6 - run SasView

You should be ready to run sasview. Go to sasview directory and run


#Mac OSX and Linux

Step 7 - Install Git (Optional)

Install Git for your platform by following instructions:

When installing on Windows, 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 "John Doe"
git config --global

If you work behind proxy remmber to configure

e.g. git config --global http.proxy