.. This file is part of Sympathy for Data.
..
.. Copyright (c) 2017 System Engineering Software Society
..
.. Sympathy for Data is free software: you can redistribute it and/or modify
.. it under the terms of the GNU General Public License as published by
.. the Free Software Foundation, either version 3 of the License, or
.. (at your option) any later version.
..
.. Sympathy for Data is distributed in the hope that it will be useful,
.. but WITHOUT ANY WARRANTY; without even the implied warranty of
.. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
.. GNU General Public License for more details.
.. You should have received a copy of the GNU General Public License
.. along with Sympathy for Data. If not, see .
Installation instructions
=========================
For Windows
-----------
Download the latest version of Sympathy from the `official
homepage `_. If you are using any
custom node libraries then make sure to select the same Python version
(Python 2 or Python 3) as the libraries have been written for.
After downloading, run the installer and follow the
instructions. This will install Sympathy as well as a custom
Python version with all dependencies for it.
For Mac OS
----------
These instructions are written for MacOS X 10.11.6 using MacPorts.
They have also been tested on 10.13.0.
Start by installing Xcode from the App Store (that will download an XCode
installer, so this is a two-stage process).
.. code-block:: bash
sudo xcode-select --install
sudo xcodebuild -license
You can install Sympathy either for Python 3 (recommended) or
Python 2.7. The common installation steps are needed for both cases.
Installing Python 2 environment
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Download and install `MacPorts `__.
Before continuing, it is recommended to run
.. code-block:: bash
sudo port selfupdate
Then install the dependencies
.. code-block:: bash
sudo port install python27 py27-zmq py27-ply py27-pyside py27-pyodbc py27-psutil py27-spyder py27-sphinx py27-pandas py27-numpy py27-scipy py27-matplotlib py27-pyflakes py27-pylint py27-ipython py27-h5py py27-lxml py27-xlwt py27-xlrd py27-pip graphviz py27-XlsxWriter py27-scikit-learn py27-scikit-image py27-mock
Make PySide detected as installed to avoid rebuild.
.. code-block:: bash
sudo bash -c "cat >/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PySide-1.2.2.egg-info <`__.
Before continuing, it is recommended to run
.. code-block:: bash
sudo port selfupdate
Then install the dependencies
.. code-block:: bash
sudo port install python36 py36-zmq py36-ply py36-pyside py36-pyodbc py36-psutil py36-spyder py36-sphinx py36-pandas py36-numpy py36-scipy py36-matplotlib py36-pyflakes py36-pylint py36-ipython py36-h5py py36-lxml py36-xlwt py36-xlrd py36-pip graphviz py36-XlsxWriter py36-scikit-learn py36-scikit-image py36-mock
Make PySide detected as installed to avoid rebuild.
.. code-block:: bash
sudo bash -c "cat >/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/PySide-1.2.2.egg-info <PySide-1.2.2.egg-info <PySide-1.2.2.egg-info <`_. Assuming
that you have downloaded it as the file "Sympathy-VERSION.whl" you can
install it by running the following commands *from the folder where you
downloaded it*:
In place of python, use the python environment that was installed for use with
Sympathy. For example, python, python2, python3, python2.7 or python3.6.
.. code-block:: bash
sudo -H python -m pip install Sympathy-VERSION.whl
sudo -H python -m sympathy_app install
Note that the last command launches Sympathy graphically as root so
that the installation can be finished. Close without doing anything
else and continue by launching Sympathy as a normal user (see below).
If you have not done so take a look at the :ref:`quick_start` pages in
the documentation.
.. _whl_run_unix:
Running Sympathy
~~~~~~~~~~~~~~~~
You can run Sympathy either with a GUI (first command below), or for data
processing applications in head-less mode (second command)
In place of python, use the python environment that was installed for use with
Sympathy. For example, python, python2, python3, python2.7 or python3.6.
.. code-block:: bash
python -m sympathy_app syg
python -m sympathy_app sy