Installing NeutronPy

The following explains various methods for installing neutronpy on your system.

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