wiki:G2onPy3

Version 8 (modified by toby, 3 years ago) (diff)

--

GSAS-II with Python 3.x

GSAS-II has been packaged with Python 3.6, wxPython 4.0 and the lastest compatible versions of all other packages into a single-download installer. While a single set of files is used to run GSAS-II, regardless of platform or Python/package versions, there are potential differences in how some code behaves with these changes. We consider these packages to be somewhat experimental until we gain more experience and would encourage experienced users to try them out, before removing their existing Python 2.7-based GSAS-II installation.

Windows

If you already have GSAS-II installed and want to keep it, rename the desktop shortcut before starting. Alternately, the previous install directory (usually named ...\g2conda\ can be deleted.)

Note: See "Installing GSAS-II with a single download" instructions for greater detail on these steps, but in them replace the referenced .exe file with one below.

Download:

Note that either version will run on 64-bit windows, but the 64-bit version is preferred.

  • Run the downloaded file
  • Use the Install for "Just Me" option
  • Install in a new directory and avoid paths that contain spaces
  • Enter a blank line for the proxy, unless your site requires one (not common)

Linux (64-bit only)

Note: See "Installing GSAS-II for Linux with a single download" instructions for greater detail on these steps, but note the referenced file should be replaced with g2conda-1.0.1-Linux-x86_64.sh.

  • Execute the downloaded file:
    bash <path>/g2conda-1.0.1-Linux-x86_64.sh
  • Press enter to read through the copyright notice and type "yes" to accept it.
  • Enter a location for where the files should be installed, if the default is not OK.
    • Enter a blank line for the proxy, unless your site requires one (not common)

You will run GSAS-II with a command-line command such as

~/g2conda/bin/python ~/g2conda/GSASII/GSASII.py

where ~/g2conda/ is replaced with your install location.

Mac (OS X)

Note: See "Installing GSAS-II for Mac with a single download" instructions for greater detail on these steps, but note the referenced file should be replaced with g2conda-1.0.1-MacOSX-x86_64.sh.

  • Execute the downloaded file:
        bash <path>/g2conda-1.0.1-MacOSX-x86_64.sh
    
  • Press enter to read through the copyright notice and type "yes" to accept it.
  • Enter a location for where the files should be installed, if the default is not OK.
    • Enter a blank line for the proxy, unless your site requires one (not common)
  • After the installation is complete, the newly created GSASII.app file will be displayed in a finder window. Double-click on this to start this GSAS-II installation; drag it to the doc or create an alias. Note that an alias can be renamed, but renaming the GSASII.app file can cause problems.