/usr/share/python-ase/doc/install.rst is in python-ase-doc 3.12.0-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 | .. _download_and_install:
============
Installation
============
Requirements
============
* Python_ 2.6-3.5
* NumPy_ (base N-dimensional array package)
Optional:
* For extra functionality: SciPy_ (library for scientific computing)
* For :mod:`ase.gui`: PyGTK_ (GTK+ for Python) and Matplotlib_ (2D Plotting)
.. _Python: http://www.python.org/
.. _NumPy: http://docs.scipy.org/doc/numpy/reference/
.. _SciPy: http://docs.scipy.org/doc/scipy/reference/
.. _Matplotlib: http://matplotlib.org/
.. _pygtk: http://www.pygtk.org/
.. _PyPI: https://pypi.python.org/pypi/ase
.. _PIP: https://pip.pypa.io/en/stable/
Installation using system package managers
==========================================
Linux
-----
Major GNU/Linux distributions (including Debian and Ubuntu derivatives,
Arch, Fedora, Red Hat and CentOS) have a ``python-ase`` package
available that you can install on your system. This will manage
dependencies and make ASE available for all users.
.. note::
Depending on the distribution, this may not be the latest
release of ASE.
Max OSX (Homebrew)
------------------
Mac users may be familiar with Homebrew_; while there is not a
specific ASE package, Homebrew can be used to install the pyGTK
dependency of :mod:`ase.gui`
::
$ brew install pygtk
before installing ASE with pip_ as described in the next section.
Homebrew's ``python`` package provides an up-to-date version of Python
2.7.x and sets up ``pip`` for you::
$ brew install python
.. _Homebrew: http://brew.sh
.. index:: pip
.. _pip installation:
Installation using pip
======================
.. highlight:: bash
The simplest way to install ASE is to use pip_ which will automatically get
the source code from PyPI_::
$ pip install --upgrade --user ase
This will install ASE in a local folder where Python can
automatically find it (``~/.local`` on Unix, see here_ for details). Some
:ref:`cli` will be installed in the following location:
================= ============================
Unix and Mac OS X ``~/.local/bin``
Homebrew ``~/Library/Python/X.Y/bin``
Windows ``%APPDATA%/Python/Scripts``
================= ============================
Make sure you have that path in your :envvar:`PATH` environment variable.
Now you should be ready to use ASE, but before you start, please `run the
tests`_ as described below.
.. note::
If your OS doesn't have ``numpy``, ``scipy`` and ``matplotlib`` packages
installed, you can install them with::
$ pip install --upgrade --user numpy scipy matplotlib
.. _here: https://docs.python.org/3/library/site.html#site.USER_BASE
.. _download:
Installation from source
========================
As an alternative to ``pip``, you can also get the source from a tar-file or
from Git.
:Tar-file:
You can get the source as a `tar-file <http://xkcd.com/1168/>`__ for the
latest stable release (ase-3.11.0.tar.gz_) or the latest
development snapshot (`<snapshot.tar.gz>`_).
Unpack and make a soft link::
$ tar -xf ase-3.11.0.tar.gz
$ ln -s ase-3.11.0 ase
:Git clone:
Alternatively, you can get the source for the latest stable release from
https://gitlab.com/ase/ase like this::
$ git clone -b 3.11.0 https://gitlab.com/ase/ase.git
or if you want the development version::
$ git clone https://gitlab.com/ase/ase.git
Add ``~/ase`` to your :envvar:`PYTHONPATH` environment variable and add
``~/ase/tools`` to :envvar:`PATH` (assuming ``~/ase`` is where your ASE
folder is). Alternatively, you can install the code with ``python setup.py
install --user`` and add ``~/.local/bin`` to the front of your :envvar:`PATH`
environment variable (if you don't already have that).
Finally, please `run the tests`_.
.. note::
We also have Git-tags for older stable versions of ASE.
See the :ref:`releasenotes` for which tags are available. Also the
dates of older releases can be found there.
.. _ase-3.11.0.tar.gz: https://pypi.python.org/packages/fc/7b/
558e7321f7a879c034ead5d10789b9d6f41beabaee0b156e807c19422ad0/
ase-3.11.0.tar.gz
Environment variables
=====================
.. envvar:: PATH
Colon-separated paths where programs can be found.
.. envvar:: PYTHONPATH
Colon-separated paths where Python modules can be found.
Set these permanently in your :file:`~/.bashrc` file::
$ export PYTHONPATH=<path-to-ase-package>:$PYTHONPATH
$ export PATH=<path-to-ase-command-line-tools>:$PATH
or your :file:`~/.cshrc` file::
$ setenv PYTHONPATH <path-to-ase-package>:${PYTHONPATH}
$ setenv PATH <path-to-ase-command-line-tools>:${PATH}
.. index:: test
.. _running tests:
.. _run the tests:
Test your installation
======================
Before running the tests, make sure you have set your :envvar:`PATH`
environment variable correctly as described in the relevant section above.
Run the tests like this::
$ python -m ase.test # takes 1 min.
and send us the output if there are failing tests.
|