Changes between Version 7 and Version 8 of G2onPy3
- Timestamp:
- Jun 14, 2018 9:45:22 PM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
G2onPy3
v7 v8 3 3 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. 4 4 5 To use these, please download the appropriate file:6 7 * [https://anl.box.com/v/g2conda101-win64 64-bit Windows: https://anl.box.com/v/g2conda101-win64] (preferred for 64 bit machines)8 * [https://anl.box.com/v/g2conda101-win32 32-bit Windows: https://anl.box.com/v/g2conda101-win32]9 * [https://anl.box.com/v/g2conda101-linux64 64-bit Linux: https://anl.box.com/v/g2conda101-linux64]10 * [https://anl.box.com/v/g2conda101-mac64 Mac OS X: https://anl.box.com/v/g2conda101-mac64] (64-bit)11 12 5 == Windows == 13 6 14 * see https://subversion.xray.aps.anl.gov/trac/pyGSAS/wiki/SingleStepWindowsIllustrated for greater detail 7 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.) 15 8 16 ===== Install Miniconda from https://repo.continuum.io/miniconda ===== 17 18 * Download and run the [https://repo.continuum.io/miniconda/Miniconda3-latest-Windows-x86_64.exe Miniconda3-latest-Windows-x86_64.exe] file. 19 The installer will ask you to exit all applications. This is probably not needed, 20 but saving your work in all apps before continuing seems like a good idea. 21 * If you are running with 32-bit windows (rare these days) there is a 32-bit version of miniconda in https://repo.continuum.io/miniconda/ ([https://repo.continuum.io/miniconda/Miniconda3-latest-Windows-x86.exe here]) 22 23 * You will need to accept the license agreement. 24 25 * Select "Just Me" unless you want to run Python from multiple accounts on your computer and are logged into an admin account. Use of "Just Me" is recommended. 26 27 * Select the installation location with some care. Avoid any path that contains a space in it (avoid ```C:\Users\Brian Toby\Miniconda3```). I suggest ```C:\conda3``` unless D: (etc.) would be a better choice. Make a note of the path you use and change subsequent commands to use this path if you use something else. 28 29 * Unselect both of the two "Advanced option" boxes, unless you are planning to do your own development in Python and understand what they do. 30 31 * Click on "Install" and wait a few minutes while the minimal Python files are unpacked and are installed on your computer. 32 33 * On the Thanks page, you may want to unselect the two boxes, but do note that the Anaconda folks are doing a great service for science. 9 Note: See [SingleStepWindowsIllustrated "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. 34 10 35 11 36 ===== Start a Command window ===== 37 In the start menu, look for an Anaconda3 Windows menu item and [[Image(menucommand.png, right, 25%)]] select the "Anaconda Prompt" item. 12 Download: 13 * [https://anl.box.com/v/g2conda101-win64 64-bit Windows: https://anl.box.com/v/g2conda101-win64] or 14 * [https://anl.box.com/v/g2conda101-win32 32-bit Windows: https://anl.box.com/v/g2conda101-win32] 38 15 39 * This will start a cmd.exe window where Python and other Anaconda-installed tools are in the path.16 Note that either version will run on 64-bit windows, but the 64-bit version is preferred. 40 17 41 * If for some reason this command is not available. Do this: Open a "Command Prompt" window and type ```c:\conda3\Scripts\activate``` into that window to set up the Anaconda environment. 18 - Run the downloaded file 19 - Use the Install for "Just Me" option 20 - Install in a new directory and avoid paths that contain spaces 21 - Enter a blank line for the proxy, unless your site requires one (not common) 42 22 43 ===== Update the Python installation =====44 23 45 Type this command: 46 ```conda update --all``` 24 == Linux (64-bit only) == 47 25 48 * you will be given a list of packages that have been updated since the miniconda file was created, press enter at the Proceed prompt to perform the update. This may take a few minutes.26 Note: See [LinuxSingleStepInstaller "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. 49 27 50 ===== Add other needed packages ===== 28 * Download: [https://anl.box.com/v/g2conda101-linux64 64-bit Linux: https://anl.box.com/v/g2conda101-linux64] 51 29 52 Type this command: 30 * Execute the downloaded file: 53 31 54 ```conda install matplotlib pillow pyopengl scipy svn h5py pywin32``` 32 {{{ 33 bash <path>/g2conda-1.0.1-Linux-x86_64.sh 34 }}} 55 35 56 * You will be given a list of packages to be downloaded and installed, press enter at the Proceed prompt to perform the install. This will take at least a few minutes. 36 * Press enter to read through the copyright notice and type "yes" to accept it. 37 * Enter a location for where the files should be installed, if the default is not OK. 38 - Enter a blank line for the proxy, unless your site requires one (not common) 57 39 58 ===== Install the wxPython package ===== 40 You will run GSAS-II with a command-line command such as 41 {{{ 42 ~/g2conda/bin/python ~/g2conda/GSASII/GSASII.py 43 }}} 44 where {{{~/g2conda/}}} is replaced with your install location. 59 45 60 Type this command: 46 == Mac (OS X) == 61 47 62 ```pip install wxpython``` 48 Note: See [MacSingleStepInstallerFigs "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. 63 49 64 * a 23 Mb file is downloaded and installed. This usually takes less than a minute.65 50 66 ===== Install GSAS-II ===== 51 * Download: [https://anl.box.com/v/g2conda101-mac64 Mac OS X: https://anl.box.com/v/g2conda101-mac64] (64-bit) 67 52 68 * Create an empty directory for GSAS-II. This can be done from the file explorer, or with commands such as 53 * Execute the downloaded file: 54 {{{ 55 bash <path>/g2conda-1.0.1-MacOSX-x86_64.sh 56 }}} 69 57 70 ```mkdir c:\GSASII``` 58 * Press enter to read through the copyright notice and type "yes" to accept it. 59 * Enter a location for where the files should be installed, if the default is not OK. 60 - Enter a blank line for the proxy, unless your site requires one (not common) 71 61 72 73 ```cd /d c:/GSASII``` 74 75 * Download a script to install GSAS-II from this location: 76 https://subversion.xray.aps.anl.gov/trac/pyGSAS/browser/install/bootstrap.py?format=txt 77 and save it into that location 62 * 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. 78 63 79 * Start the GSAS-II installation process with this command:80 64 81 ```python c:\GSASII\bootstrap.py```82 65 83 * answer questions as needed.84 85 * The bootstrap process should load all files needed by GSAS-II and should create RunGSASII.bat (and link it on Desktop) that will start GSASII86