Version 4 (modified by toby, 5 years ago) (diff) |
---|
Installing GSAS-II via conda (Anaconda Python)
Python enthusiasts are likely quite familiar with the Anaconda package manager. GSAS-II can be installed using the following command conda command after installing anaconda or miniconda. Note that Python 2.7 or 3.6+ can be used, but not all platforms/combinations have been tested. Use This command to install GSAS-II:
conda install gsas2pkg -c briantoby
If you get an error that conda is an unknown command, this means anaconda/miniconda is not in your path (which is my recommended way to install anaconda) and you will need to first use the ananconda activate command:
mac/linux:
source <condapath>/bin/activate
windows:
<condapath>\Scripts\activate
After the conda install completes, one of the following occurs:
- On the Mac, an app is created that can be dragged to the doc (or create a shortcut to GSAS-II.app and drag that anywhere).
- On Windows a desktop shortcut is created.
- On Linux (at present) the command-line is needed to start GSAS-II:
<condapath>/bin/python <condapath>/GSASII/GSASII.py
This mechanism is a new installation option (as of June 2018) and feedback on problems or suggestions on how to make this better integrated with anaconda are solicited.
GSAS-II Updates
Note that updates to GSAS-II are not integrated into conda and are not coupled to the specific versions of Python packages you have loaded. To obtain the latest version GSAS-II (you are strongly recommended to update regularly) use the Help/Update menu command or rerun the bootstrap.py script using this command:
<condapath>/bin/python <condapath>/GSASII/bootstrap.py