|
1 | 1 | Installation
|
2 | 2 | ============
|
3 | 3 |
|
4 |
| -MSMBuilder should run on most modern computers equiped with a scientific python installation. But, in the interest of being explicit, here the requirements |
| 4 | +MSMBuilder is a python package that uses a number of components from the "scientific python" stack. These packages include `numpy and scipy <http://scipy.org/getting-started.html>`_ for array manipulation and numerical linear algebra, `PyTables <http://www.pytables.org/moin>`_ for storing binary data, and others. |
5 | 5 |
|
6 |
| -- A CPU with SSE3 support, which has been tandard on all x86 processors produce after 2006. |
7 |
| -- A working C compiler, such as GCC 4.2 or later, clang, or MSVC. |
8 |
| -- Python, with some scientific modules installed (see below) |
| 6 | +.. note:: |
9 | 7 |
|
10 |
| -MSMBuilder is written in the python programming language, and uses a |
11 |
| -variety of tools from the wider scientific python ecosystem, which may |
12 |
| -need to be installed separately. They include |
| 8 | + MSMBuilder currently required python2.7, and is not compatible with the python3.x series. |
13 | 9 |
|
| 10 | +Easily with ``conda`` |
| 11 | +--------------------- |
14 | 12 |
|
15 |
| -Python Prerequisites |
16 |
| --------------------- |
17 |
| -- MDTraj |
18 |
| -- Numpy |
19 |
| -- Scipy |
20 |
| -- PyTables |
21 |
| -- numexpr |
22 |
| -- fastcluster (for hierarchical clustering) |
23 |
| -- matplotlib (optional for plotting) |
24 |
| -- ipython (optional for interactive mode) |
25 |
| -- pymol (optional for visualization) |
| 13 | +The easiest way to install MSMBuilder is with the python package manager ``conda``. |
| 14 | +``conda`` is an open-source cross-platform binary package manager integrated with |
| 15 | +the scientific python stack. It's built into the `Anaconda python distribution <http://docs.continuum.io/anaconda/>`_ produced by Continuum Analytics, which is a python installer that comes shipped with many of the python packages needed for science. |
| 16 | + |
| 17 | +.. warning:: |
26 | 18 |
|
27 |
| -Two companies, Enthought and Continuum Analytics, produce python |
28 |
| -distributions which bundle many of these packages in with the python |
29 |
| -interpreter into a single binary installer, available for all major |
30 |
| -operating systems. These are the Enthought Canopy python distribution |
31 |
| -and Continuum’s Anaconda. |
| 19 | + We **strongly** recommend using Anaconda. Installing the scientific stack by hand can be quite tricky. |
32 | 20 |
|
| 21 | +If you don't want to get Anaconda, you can also install ``conda`` into an existing python interpreter. Once you have ``conda``, install MSMBuilder with :: |
33 | 22 |
|
34 |
| -Install Python and Python Packages |
35 |
| ----------------------------------- |
| 23 | + conda config --add channels http://conda.binstar.org/omnia |
| 24 | + conda install msmbuilder |
36 | 25 |
|
37 |
| -Rather than individually install the many python dependencies, we |
38 |
| -recommend that you download the Python2.7 version of the Enthought |
39 |
| -Canopy or Continuum Anaconda, which contain almost all python |
40 |
| -dependencies required to run MSMBuilder. If you have a 64 bit platform, |
41 |
| -please use the 64 bit versions, as this will give higher performance. |
| 26 | +Medium With ``pip`` |
| 27 | +------------------- |
42 | 28 |
|
43 |
| -Note for OSX users: Enthought represents the easiest way to obtain a |
44 |
| -working Python installation. The OSX system Python install is broken and |
45 |
| -cannot properly build Python extensions, which are required for |
46 |
| -MSMBuilder installation. Also, see FAQ question 11 for a known issue |
47 |
| -with OSX Lion and OpenMP. |
| 29 | +MSMBuilder can be instaleld with ``pip``, but ``pip`` is not fantastic at installing the dependencies. If you've already got the dependencies installed (see below), then you can download and install MSMBuilder:: |
48 | 30 |
|
49 |
| -Note: if you are unable to use Canopy or Anaconda, there are other |
50 |
| -pre-compiled Python distributions available, although they might not be |
51 |
| -as fast as Enthought. Options include Python(x,y) and the Scipy |
52 |
| -Superpack (OSX). Finally, most Linux users can install most |
53 |
| -prerequisites using their package manager. In Ubuntu, the following will |
54 |
| -install most of the prerequisites: |
| 31 | + pip install msmbuilder |
55 | 32 |
|
56 |
| -:: |
| 33 | +Hard Way by Hand |
| 34 | +---------------- |
| 35 | + |
| 36 | +If you use conda, all of this will be done automatically. If you prefer to do things by hand, keep reading. |
| 37 | + |
| 38 | +You'll need to get the following python packages: |
| 39 | + |
| 40 | +- `mdtraj >= 0.8 <https://pypi.python.org/pypi/mdtraj>`_ |
| 41 | +- `numpy >= 1.6 <https://pypi.python.org/pypi/numpy>`_ |
| 42 | +- `scipy >= 0.11 <https://pypi.python.org/pypi/scipy>`_ |
| 43 | +- `tables >= 2.4.0 <https://pypi.python.org/pypi/tables>`_ |
| 44 | +- `pyyaml <https://pypi.python.org/pypi/PyYAML>`_ |
| 45 | +- `fastcluster (for hierarchical clustering) <https://pypi.python.org/pypi/fastcluster>`_ |
| 46 | +- matplotlib (optional for plotting) |
| 47 | +- ipython (optional for interactive mode) |
| 48 | + |
| 49 | +On a debian-based linux, you can get most of them with :: |
57 | 50 |
|
58 | 51 | $ sudo apt-get install libhdf5-serial-dev python-dev python-numpy \
|
59 | 52 | python-scipy python-setuptools python-nose python-tables \
|
60 |
| - python-matplotlib python-yaml swig ipython |
| 53 | + python-matplotlib python-yaml swig ipython python-pip |
61 | 54 |
|
62 |
| -Neither Canopy nor Anaconda include MDTraj nor fastcluster. They can be installed be installed using python’s package manager, ``pip``. |
63 | 55 |
|
64 |
| -:: |
| 56 | +Download MSMBuilder, unzip, move to the msmbuilder directory. Then, use ``pip`` |
| 57 | +to install any remaining dependencies :: |
65 | 58 |
|
66 | 59 | $ pip install -r requirements.txt
|
67 | 60 |
|
68 |
| -Download and Install MSMBuilder |
69 |
| -------------------------------- |
70 |
| - |
71 |
| -Download MSMBuilder, unzip, move to the msmbuilder directory. Install |
72 |
| -using setup.py: |
73 |
| - |
74 |
| -:: |
| 61 | +Then install MSMBuilder with ``setup.py`` :: |
75 | 62 |
|
76 | 63 | $ python setup.py install
|
77 | 64 |
|
78 | 65 | You may need root privileges during the install step; alternatively, you
|
79 | 66 | can specify an alternative install path via ``–prefix=XXX``. If you
|
80 | 67 | performed the install step with ``–prefix=XXX``, you need to ensure that
|
81 | 68 |
|
82 |
| -#. XXX/bin is included in your PATH |
| 69 | +#. ``XXX/bin`` is included in your ``PATH`` |
83 | 70 |
|
84 |
| -#. XXX/lib/python2.7/site-packages/ is included in your PYTHONPATH |
| 71 | +#. ``XXX/lib/python2.7/site-packages/`` is included in your ``PYTHONPATH`` |
85 | 72 |
|
86 | 73 | Step (1) ensures that you can run MSMBuilder scripts without specifying
|
87 | 74 | their location. Step (2) ensures that your Python can locate the
|
|
0 commit comments