Installing NeutronPy ==================== The following explains various methods for installing neutronpy on your system. Anaconda Cloud - conda -- **Recommended** ----------------------------------------- The recommended method for installing `neutronpy `_ is using `Anaconda `_. Once Anaconda is installed, from the command line:: conda install -c neutronpy neutronpy ``pyqt5`` is necessary for the neutronpy resolution gui executed from the command line with ``neutronpy``, but optional for all other features of neutronpy. Python Package Index - pip -------------------------- The next method for installing `neutronpy `_ is using `pip `_. If you do not already have ``pip``, to install it first download `get-pip.py `_ and run it with the following command:: python get-pip.py With ``pip`` installed, you can install the latest version of neutronpy with the command:: pip install neutronpy To install a specific version of neutronpy, append ``=={version}`` to the above command, *e.g.*:: pip install neutronpy==1.1.0b2 New releases will be pushed to the package index. If you wish to install the development version, you will need to follow the instructions for installation from source. Installation from Source ------------------------ To install from source, either download the `master branch source from Github `_ or clone the repository:: git clone https://github.com/neutronpy/neutronpy.git From inside of the neutronpy directory install the package using:: python setup.py install If you want to install the development version, you can either download the `development branch source from Github `_, as above, after switch to the ``develop`` branch, or clone the repository and checkout the branch and install:: git clone https://github.com/neutronpy/neutronpy.git git fetch git checkout develop python setup.py install