- #Conda install package for specific version of python mac os x#
- #Conda install package for specific version of python update#
- #Conda install package for specific version of python download#
- #Conda install package for specific version of python windows#
These commands can be found in file /start_GSASII.sh Where is the location where anaconda/miniconda was installed.
#Conda install package for specific version of python mac os x#
#Conda install package for specific version of python windows#
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
#Conda install package for specific version of python download#
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. Getting Started with Jupyter.Installing GSAS-II via conda (Anaconda Python)
You now have Python 3 and Conda installed on your computer and you’re ready to move on to Part 2. If you’ve made it this far, congratulations! To exit out of this interactive Python session, type exit(). > print('Hi, my name is !'.format(myName))
Try executing the following statements in this interactive environment: > a = 5 You can interact with Python at this point, by simply typing python.
#Conda install package for specific version of python update#
Update conda’s listing of packages for your system: conda update conda.*Note:* Windows users, if you want to be able to use the conda command in the command prompt or Git BASH, make sure to that the "Add Conda to my PATH environment variable" box is checked during installation.Īfter you have installed conda, you can run the following commands in your Terminal/command prompt/Git BASH to update and test your installation: