wiki:XPnotes

Version 1 (modified by toby, 21 months ago) (diff)

--

GSAS-II on Windows XP

To install GSAS-II on Windows XP (or Vista) you will need an older version of GSAS-II than what is we use for our installer. There are some choices, but we here will use an older version of Anaconda. Since XP and Vista are no longer supported by Microsoft, I will assume the installation will be done by moving files to the computer with a USB stick or something similar rather than use of commands that require an internet connection (which would be way simpler) but you really do not want to put a computer with such an old an unprotected operating system on the internet -- please don't as you are just creating a haven for spammers and hackers to work from if you do.

So far this has not worked. Probably because I need to do lots of updates to stay compatible with the downloads. This is what conda wants to update:

    certifi:        14.05.14-py27_0 --> 2016.2.28-py27_0
    cffi:           1.1.0-py27_0    --> 1.10.0-py27_0
    conda:          3.14.1-py27_0   --> 4.3.30-py27h55876ee_0
    conda-env:      2.2.3-py27_0    --> 2.6.0-0
    cryptography:   0.9.1-py27_0    --> 1.8.1-py27_0
    enum34:         1.0.4-py27_0    --> 1.1.6-py27_0
    idna:           2.0-py27_0      --> 2.6-py27_0
    ipaddress:      1.0.7-py27_0    --> 1.0.18-py27_0
    menuinst:       1.0.4-py27_0    --> 1.4.7-py27_0
    pip:            7.0.3-py27_0    --> 9.0.1-py27_1
    pycparser:      2.14-py27_0     --> 2.18-py27_0
    pyopenssl:      0.15.1-py27_1   --> 17.0.0-py27_0
    pyparsing:      2.0.3-py27_0    --> 2.2.0-py27_0
    pywin32:        219-py27_0      --> 220-py27_2
    requests:       2.7.0-py27_0    --> 2.14.2-py27_0
    setuptools:     17.1.1-py27_0   --> 36.4.0-py27_1
    six:            1.9.0-py27_0    --> 1.10.0-py27_0

Install Python

First download one of these files:

To install this file, double-click on it. Click on the following things:

  • Next
  • "I agree"
  • Choose "All Users" (I'd prefer to use "Just me" but that did not work for me)
  • The path suggested, C:\Anaconda, worked fine for me, but feel free to select something better for you, but keep track of what you use and if it is short and simple you may be glad later.
  • uncheck "Add to path" and "Register"
  • when installation completes use "Next" and "Finish"

Add packages

You will now need to install all the packages normally installed with a conda install... command. I will ignore the packages that conda would update, but you should download all these files:

You then install them with these commands inside a cmd.exe window:

cd <download-location>
C:\Anaconda\Scripts\conda install --offline asn1crypto-0.22.0-py27_0.tar.bz2 openssl-1.0.2l-vc9_0.tar.bz2 packaging-16.8-py27_0.tar.bz2 pyopengl-3.1.1a1-np110py27_0.tar.bz2 ruamel_yaml-0.11.14-py27_1.tar.bz2 vs2008_runtime-9.00.30729.5054-0.tar.bz2 wheel-0.29.0-py27_0.tar.bz2 wincertstore-0.2-py27_0.tar.bz2 wxpython-3.0-py27_0.tar.bz2 vc-9-0.tar.bz2 

If you prefer you can use multiple smaller commands such as

C:\Anaconda\Scripts\conda install --offline asn1crypto-0.22.0-py27_0.tar.bz2 
C:\Anaconda\Scripts\conda install --offline openssl-1.0.2l-vc9_0.tar.bz2 
C:\Anaconda\Scripts\conda install --offline packaging-16.8-py27_0.tar.bz2
...

Install the GSAS-II files

Use this URL to obtain copies of the GSAS-II files: ​

This will download a file named trunk-XXXX.zip where XXXX is the current GSAS-II version. Unzip this file which will create a directory named trunk and rename the directory to GSASII. The move this to someplace without a space in the directory name such as C:\GSASII

You will also need to download the GSAS-II binary files:

Unzipping this file will create a directory named win_32_p2.7_n1.6 inside a directory named Binaries. Move the files inside that directory to the directory named bindist inside the GSAS-II location (C:\GSASII\bindist)

Alternate choice: 64-bit Windows

The above instructions will work on 64-bit Windows, but you could also use 64-bit Python which will run larger projects. You could install 64 bit Anaconda (https://repo.continuum.io/archive/Anaconda-2.3.0-Windows-x86_64.exe) but then you will need to locate 64-bit versions of all the above packages. ​Likely these can be found by changing win-32 to win-64 in all the URLs above, but I have not checked this works.