AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Anaconda python 3.7 download linux8/15/2023 ![]() These commands can be found in file /start_G2_bootstrap.sh or on windows \start_G2_bootstrap.bat ![]() ![]() To rerun the bootstrap.py script using the python package you have installed with this command in a terminal/cmd.exe window To obtain the latest version GSAS-II (you are strongly recommended to update regularly) use the Help/Update menu command or rerun the bootstrap.py script using this command: Note that updates to GSAS-II are not integrated into conda and are not coupled to the specific versions of Python packages you have loaded. Python 2.7: We strongly discouraging use of Python 2.7 and are no longer testing GSAS-II compatiblity with Python 2.7 (but will usually fix problems, if reported). With GSAS-II in an environment, the activate command becomes If you get an error that conda is an unknown command, this means anaconda/miniconda is not in your path (which is my recommended way to install anaconda) and you will need to first use the activate command: These commands can be found in file /start_GSASII.sh Where is the location where anaconda/miniconda was installed. On Mac OS X the created application seems to work OK (or use commands in /start_GSASII.sh).On Windows manually edit the runGSASII.bat file to add this.To run GSAS-II, you will need to activate the environment manually before starting GSAS-II ( conda activate G2). Note that the GSAS-II files will be placed in /env/G2/GSAS-II. To use a separate conda environment for GSAS-II, (here named G2,) use these commands to install GSAS-II:Ĭonda create gsas2pkg=2 -c briantoby -n G2 This is recommended if you have any other packages with particular version dependencies. It can be a good idea to place GSAS-II in a separate environment so that package versions do not conflict. These commands can be found in file /start_GSASII.sh or on windows \start_GSASII.bat` On Linux (at present) the command-line is needed to start GSAS-II:.On Windows a desktop shortcut is created.On MacOS, an app is created that can be dragged to the doc (or create a shortcut to GSAS-II.app and drag that anywhere).If conflicts persist, you are best off installing GSAS-II in a named environment (see below).Īfter the conda install completes, one of the following should occur: To access that, add -c defaults -c conda-forge before -c briantoby in the above command so that it becomes:Ĭonda install gsas2pkg -c defaults -c conda-forge -c briantobyĪlternatively, one can force regression to an older version of Python with this command:Ĭonda install python=3.7 gsas2pkg -c briantoby As I write this, wxPython is not available for Python 3.8 in the standard package repository, but is in the conda-forge channel. If the conda environment fails to solve, this is likely because Anaconda is not supplying a compatible wxpython package or you have previously installed some other package that conflicts with GSAS-II's required packages. Proxy information and should install these files. Requires a proxy ( more info on proxies here), but rerunning the bootstrap.py command (see bottom of this page) will request this This download will fail if your computer network When the gsas2pkg conda package is used, it ensures that the packages required by GSAS-II are installed, including subversion, and then subversion is used to download the latest version of GSAS-II from the APS server. Use of pip wxpython works too, but tends to defeat the purpose of a package manager. To install wxPython with 3.9, use conda-forge, either by installing miniforge rather than miniconda or by adding the conda-forge channel. At the time this is being written (January 2022), Python 3.9 is available from Anaconda, but wxPython is not. GSAS-II can be installed using a simple conda command, after installing anaconda or miniconda. The Anaconda distributions are available for Intel-compatible Windows, Linux and MacOS computers, but not for Raspberry Pi or native M1 Mac. Many Python enthusiasts use the Anaconda package manager to install Python on their computer. For now, one can create an environment in conda, use subversion to download the bootstrap.py file and run it, see here for an example. This approach for installing GSAS-II currently does not workĪnaconda Python's distributions no longer contain current versions of subversion or wxPython, so this conda installation process needs to be reworked to use conda-forge rather than the default conda channels, but that has not been debugged. Installing GSAS-II via conda (Anaconda Python)
0 Comments
Read More
Leave a Reply. |