Source Install - Linux¶
Dependencies¶
PyNE has the following dependencies:
- Fortran compiler
- C++ compiler
- CMake (>= 2.8.5)
- NumPy (1.11.0)
- SciPy
- Cython (>= 0.19.1)
- HDF5
- PyTables
- Python 2.7
- LAPACK
- BLAS
Most of the dependencies are readily available through package managers. Once all the dependencies are installed, PyNE can be installed. Download and unzip the source (zip, tar) or checkout a verison from the PyNE repository (Github). Then run the following commands from the directory above the unzipped directory:
cd pyne/
python setup.py install --user
scripts/nuc_data_make
The setup.py
command compiles and installs the PyNE source code.
The nuc_data_make
builds and installs a database of nuclear data.
Note that these both commands must be done in the top PyNE directory.
Unfortunately, nuc_data_make
must be done as a second step because most nuclear
data is under some form of license restriction or export control which
prevents the developers from distributing it with PyNE. However, the
nuc_data_make
program (which is installed by setup.py
) will
do its best to find relevant nuclear data elsewhere on your machine
or from public sources on the internet.