Installing DFO-GN ================= Requirements ------------ DFO-GN requires the following software to be installed: * `Python 2.7 or Python 3 `_ Additionally, the following python packages should be installed (these will be installed automatically if using `pip `_, see `Installation using pip`_): * `NumPy 1.11 or higher `_ * `SciPy 0.18 or higher `_ Installation using pip ---------------------- For easy installation, use `pip `_ as root: .. code-block:: bash $ [sudo] pip install --pre dfogn If you do not have root privileges or you want to install DFO-GN for your private use, you can use: .. code-block:: bash $ pip install --pre --user dfogn which will install DFO-GN in your home directory. Note that if an older install of DFO-GN is present on your system you can use: .. code-block:: bash $ [sudo] pip install --pre --upgrade dfogn to upgrade DFO-GN to the latest version. Manual installation ------------------- The source code for DFO-GN is `available on Github `_: .. code-block:: bash $ git clone https://github.com/numericalalgorithmsgroup/dfogn $ cd dfogn or through the `Python Package Index `_: .. code-block:: bash $ wget http://pypi.python.org/packages/source/d/dfogn/dfogn-X.X.tar.gz $ tar -xzvf dfogn-X.X.tar.gz $ cd dfogn-X.X DFO-GN is written in pure Python and requires no compilation. It can be installed using: .. code-block:: bash $ [sudo] pip install --pre . If you do not have root privileges or you want to install DFO-GN for your private use, you can use: .. code-block:: bash $ pip install --pre --user . instead. Testing ------- If you installed DFO-GN manually, you can test your installation by running: .. code-block:: bash $ python setup.py test Uninstallation -------------- If DFO-GN was installed using `pip `_ you can uninstall as follows: .. code-block:: bash $ [sudo] pip uninstall dfogn If DFO-GN was installed manually you have to remove the installed files by hand (located in your python site-packages directory).