Version 11 (modified by toby, 3 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). Note that if you have 64-bit windows (>=Windows-7), you will likely find it easier to use this installer.

  1. Download the appropriate 64- or 32-bit Anaconda package from the download page. Important: make sure to select the appropriate version, 32- or 64-bit, for your computer. Use of miniconda, which is much smaller, also works quite well.

You will download a file such as "Anaconda3-x.x.x-Windows-x86.exe" (32-bit) or "Anaconda3-x.x.x-Windows-x86_64.exe (64-bit), (or Anaconda2- to use Python 2.7 works, but is not encouraged). If needed, click on the file you downloaded to run the installer. The following steps are then needed:

  1. Accept the copyright (end-user) agreement
  2. Install for "Just me" (there have been occasional problems reported with "All users")
  3. Make a note of the installation location
  4. Suggestion: leave "Add Anaconda to your path" and "Register Anaconda" unchecked, unless you plan to develop your own Python code.
  5. It then takes a few minutes to install Python.
  6. Follow instructions to use the activate command

  1. Once Anaconda is installed, in the Windows Apps or "All Programs" menu, find the Anaconda menu and select "Anaconda Command Prompt" menu item.

You will need to install all needed and recommended packages which can be done with this command:

conda install wxpython svn pyopengl numpy scipy matplotlib pillow h5py imageio
  1. Create a directory for GSAS-II and download the install script

In the Anaconda Command Prompt cmd (DOS) window, type the following command:

mkdir GSASII

Download the install script from this ​link:

Use your web browser to save this file into the GSASII directory you created above.

Run this file inside Python with this command:

python GSASII\


python \Users\<me>\GSASII\

This will cause a questions to be asked about a web proxy see below. Most people will not need a proxy, so the usual response is to simply press Return

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. If Python or GSAS-II are ever moved to new locations, or if these programs will be installed on a centralized server and a shortcut is needed for each machine, this script can be rerun using a command such as

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

to create new versions.

Note that the file can be rerun at any point without problems. This causes a download of updates to GSAS-II (only), so this should complete very quickly.

Proxy address

If GSAS-II fails to be installed, you likely have a network access problem, most commonly because you need to use a network proxy. This is not common at universities, or at private networks, but is common for government and corporate sites. When one is needed, it will typically be of form such as If you are not able to get the GSAS-II download to work, you probably need a proxy. Check with your network/computer administrators. My experience is that the first-line response people will have no knowledge about proxies, alas. You may be able to get information from this website: If a web proxy is needed, supply the address ( for the first prompt and the port number (7070) for the second.

Attachments (5)

Download all attachments as: .zip