Changes between Version 19 and Version 20 of DevNotes/DevGuide/CondaDevSetup
- Timestamp:
- Jan 18, 2018 12:23:17 PM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DevNotes/DevGuide/CondaDevSetup
v19 v20 3 3 Download the latest '''64-Bit''' Python '''2.7''' Installer from http://continuum.io/downloads and run it. 4 4 5 * 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 .5 * 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, and is not the same as any previous installation (one reader installed 64 bit on top of previous 32 bit, not a good idea). 6 6 7 7 * 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. 8 8 9 * By default of Windows anaconda is installed for single user and not "everyone", which means you cannot run the conda command from an arbitrary command window. If you proceeded with default installation, you need to open Anaconda Prompt from Menu Start. Otherwise you can install anaconda for everyone, which requires root privlidges. 9 * By default of Windows anaconda is installed for single user and not "everyone", which means you cannot run the conda command from an arbitrary command window. If you proceeded with default installation, you need to open Anaconda Prompt from Menu Start. Otherwise you can install anaconda for everyone, which requires root privlidges. If "conda" is not a recognised command then add the install directory to your Windows user Path variable. 10 10 11 11 == Step 2 - Download !SasView and sasmodels from github == … … 16 16 git clone https://github.com/SasView/sasmodels.git sasmodels 17 17 }}} 18 19 20 18 == Step 3 - Install dependencies using yml files == 21 19 Go to folder: … … 41 39 activate sasview 42 40 41 else if running from inside a Git Bash shell then use: source activate sasview. 42 43 43 #Mac OSX and Linux 44 44 source activate sasview 45 45 }}} 46 47 46 == Step 5 - run !SasView == 48 You should be ready to run sasview. 49 Go to sasview directory and run 47 You should be ready to run sasview. Go to sasview directory and run 50 48 51 49 {{{ … … 57 55 pythonw run.py 58 56 57 To build the documentation you will still first need to do: 58 59 python setup.py docs 60 59 61 }}} 60 == [=#anchor1 Step 6 - Install Git (Optional)] == 62 == [=#anchor1 Step 6 - try the new qt gui (highly experimental work in progress)] == 63 ''Some notes as of 18 Jan 2018 based on a Windows 7 install. Start with Git bash in your sasview directory.'' 64 65 source deactivate 66 67 git checkout ESS_GUI 68 69 ''Look for sasview/build_tools/conda_py3_qt5.yml, open it in an editor, save it somewhere else outside of git control, '''remove''' any pip lines for sasview and sasmodels which will elsewise throw errors. (Also added a line '' - tinycc==1.1 '' but don't know if that was absolutely necessary)'' 70 71 conda env create -f=/path to your new yml file/conda_py3_qt5_new.yml 72 73 source activate qt5 74 75 cd src/sas/qtgui 76 77 python convertUI.py 78 79 cd ../../.. 80 81 python run.py 82 83 ''You may then need to install 64 bit Microsoft Visual C++ 14.0 compiler by following the link requested, as the latest changes to use only TinyCC compiler are not yet merged with this branch. Other useful conda commands:'' 84 85 conda info --envs ''will show that you now have both sasview and qt5 environments.'' 86 87 conda env remove --name qt5'' '' 88 89 ''will remove the qt5 environment, though the files involved seem to stay on your hard drive so a new ''conda env create ''is much faster than the first time.'' 90 91 ''If it does not work the first time through, try going back to the normal sasview master, then repeat the steps above. Piotr and others will be making this easier in the future.'' 92 93 == [=#anchor1 Step 7 - Install Git (Optional)] == 61 94 Install Git for your platform by following instructions: 62 95 … … 72 105 git config --global user.email johndoe@example.com 73 106 }}} 107 If you work behind proxy remmber to configure 74 108 75 If you work behind proxy remmber to configure76 109 {{{ 77 110 e.g. git config --global http.proxy 192.168.1.1:XXXX