Version 7 (modified by toby, 6 years ago) (diff)


Installing GSAS-II on Windows with Anaconda

You will need to know if you are running 32- or 64-bit Windows (click here if you are not sure).

  1. Download the Anaconda package from Continuum Analytics, Inc. download page. (There is no cost for this, but an e-mail address is required.) Select the "32-bit — Python 2.7 — Graphical Installer" if on 32-bit Windows. For 64-bit Windows, either version can be used, but we recommend the "Windows 64-bit Python 2.7 Graphical Installer" as that will handle much larger refinement projects.

You will download a file such as "Anaconda-2.x.x-Windows-x86.exe" (32-bit) or "Anaconda-2.2.0-Windows-x86_64.exe (64-bit). Click on that file to run the installer. You will be given the option to install for just yourself or for all users. Either option works, but if only one account is in use on your computer, "Just Me" is a bit easier. The default install location is fine, but is OK to change. With the advanced options, it will be much easier to use the defaults, to add Anaconda to your path, and to register Anaconda as the default Python.

  1. Once Anaconda is installed, in the "All Programs"/Anaconda menu, select "Anaconda Command Prompt" and then type command:

conda install wxpython

because by default this package is not included. Press return and the package is loaded and installed see screen image.

  1. Download file ​ Click on this file in Windows Explorer (see screen image), you should see a single folder named GSASII (see screen image). Drag this file anywhere you want to install GSAS-II (your desktop, your Documents folder, the D: drive,...)
  1. You then need to execute the file. This can be done a few different ways. The easiest is to click on the bootstrap.bat file (N.B. by default, no extension is shown for this). (If you did not add Python to your path in step 1 above, you will need to edit bootstrap.bat to include the full path to python.exe.) Alternately, you can also use a command something like:

python \Users\<me>\Desktop\GSASII\

in a "All Programs"/Anaconda/"Anaconda Command Prompt" window.

This script will check to see that the Python packages needed to run GSAS-II are installed and that the subversion program needed to install and update from the Internet (included in the .zip file) is present. It then asks for a proxy address (see screen image).

Proxy address: For most people, pressing return to use the default (no proxy) works fine, but for some sites a proxy address such as is needed. If you are not able to get the GSAS-II download to work, you probably need a proxy. Check with your network/computer administrators; anyone competent should know if a proxy is in use. Supply the address ( on the first line and the port number (7070) on the second.

Note that many seemingly nasty warning messages appear when PyOpenGl is installed. This is not a problem, provided the installation and script complete normally.

After the script completes, a file named RunGSASII.bat is created with the locations of GSAS-II and Python hardcoded. You should have a shortcut to start GSAS-II on your desktop linked to that .bat file (see screen image). GSAS-II project files (with extension .gpx) will appear with the same icon and clicking on them will open them in GSAS-II.

  1. The file runs a script called to create the RunGSASII.bat and the desktop shortcut. This script can be rerun manually using a command such as

python \Users\<me>\Desktop\GSASII\

to create new versions. This may be needed if Python or GSAS-II are moved to new locations, or if these programs will be installed on a centralized server and a shortcut is needed for each machine.

Note that the (or bootstrap.bat) file can be rerun without problems. If there are any updates to GSAS-II they will be downloaded, but only any new files will be downloaded and the script should complete very quickly.

Attachments (5)

Download all attachments as: .zip