11 | | == Step 3 - Install Git (or optionally stay with SVN) == |
| 11 | == Step 2 - Download SasView and sasmodels from github == |
| 12 | If you don't have installed go GIT section for instructions, otherwise simply run |
| 13 | {{{ |
| 14 | git clone https://github.com/SasView/sasview.git sasview |
| 15 | git clone https://github.com/SasView/sasmodels.git sasmodels |
| 16 | }}} |
| 17 | |
| 18 | == Step 3 - Install dependencies using yml files == |
| 19 | |
| 20 | Go to folder: |
| 21 | {{{ |
| 22 | sasview/build_tools/conda/ymls |
| 23 | }}} |
| 24 | |
| 25 | and create conda enviroment using yml specific for your platform |
| 26 | |
| 27 | {{{ |
| 28 | #Windows |
| 29 | conda env create -f sasview-env-build_win.yml |
| 30 | |
| 31 | #Mac OSX |
| 32 | conda env create -f sasview-env-build_osx.yml |
| 33 | |
| 34 | #Linux |
| 35 | conda env create -f sasview-env-build_linux.yml |
| 36 | }}} |
| 37 | |
| 38 | === Step 4 - activate conda enviroment === |
| 39 | {{{ |
| 40 | #Windows |
| 41 | call activate sasview |
| 42 | |
| 43 | #Mac OSX |
| 44 | |
| 45 | #Linux |
| 46 | |
| 47 | }}} |
| 48 | |
| 49 | |
| 50 | == Step 3 - Install Git (Optional) == |
24 | | |
25 | | == Step 5 - Download SasView and sasmodels from github == |
26 | | If you don't have installed go GIT section for instructions, otherwise simply run |
27 | | {{{ |
28 | | git clone https://github.com/SasView/sasview.git sasmodels |
29 | | git clone https://github.com/SasView/sasmodels.git sasmodels |
30 | | }}} |
31 | | |
32 | | == Step 6 - Check that the Right Version of Python is Being Used == |
33 | | |
34 | | Ask your console which versions of Python it can find: |
35 | | |
36 | | {{{ |
37 | | where python |
38 | | }}} |
39 | | |
40 | | Hopefully, the first python installation in the list is the recently-installed Anaconda version. If not, you have two options: |
41 | | |
42 | | 1. Whenever you call python on the command line from now on, use the fully resolved path, e.g.: |
43 | | {{{ |
44 | | C:/PathToAnaconda/python |
45 | | }}} |
46 | | |
47 | | 2. 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 [http://www.rapidee.com/en/download RapidEE]. |
48 | | |
49 | | Some things to consider: |
50 | | |
51 | | * 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. |
52 | | * 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. |
53 | | * 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. |
54 | | |