| 1 |
.. include:: references.txt |
| 2 |
|
| 3 |
.. _installation: |
| 4 |
|
| 5 |
************ |
| 6 |
Installation |
| 7 |
************ |
| 8 |
|
| 9 |
Requirements |
| 10 |
============ |
| 11 |
|
| 12 |
**astroplan** works on Linux, Mac OS X and Windows. |
| 13 |
It requires Python 3.7+ as well as numpy, astropy, pytz, and six. |
| 14 |
Additional features are available when you install `Matplotlib`_ |
| 15 |
and `astroquery`_. |
| 16 |
|
| 17 |
First-time Python users may want to consider an all-in-one Python installation |
| 18 |
package, such as the `Anaconda Python Distribution |
| 19 |
<http://continuum.io/downloads>`_ which provides all of the above dependencies. |
| 20 |
|
| 21 |
Installation |
| 22 |
============ |
| 23 |
|
| 24 |
You can install the stable version of astroplan from PyPI with:: |
| 25 |
|
| 26 |
pip install astroplan |
| 27 |
|
| 28 |
or from anaconda:: |
| 29 |
|
| 30 |
conda install -c conda-forge astroplan |
| 31 |
|
| 32 |
Alternatively, you can install the latest developer version of astroplan by |
| 33 |
cloning the git repository:: |
| 34 |
|
| 35 |
git clone https://github.com/astropy/astroplan |
| 36 |
|
| 37 |
...then installing the package with:: |
| 38 |
|
| 39 |
cd astroplan |
| 40 |
pip install . |
| 41 |
|
| 42 |
Testing |
| 43 |
======= |
| 44 |
|
| 45 |
If you want to check that all the tests are running correctly with your Python |
| 46 |
configuration, run the following from the command line:: |
| 47 |
|
| 48 |
tox -e test |
| 49 |
|
| 50 |
If there are no errors, you are good to go! |
| 51 |
|
| 52 |
.. note:: |
| 53 |
If you want to run the tests that access the internet, you'll need to |
| 54 |
replace the last line above with ``tox -e test -- --remote-data`` and |
| 55 |
have an active connection to the internet. Also, if you want the tests |
| 56 |
that check plotting to work, you need `Matplotlib`_ and `pytest-mpl`_. |
| 57 |
|
| 58 |
More |
| 59 |
==== |
| 60 |
|
| 61 |
astroplan follows `astropy <https://astropy.org>`__'s guidelines for affiliated packages--installation |
| 62 |
and testing for the two are quite similar! Please see astropy's |
| 63 |
`installation page <http://astropy.readthedocs.io/en/latest/install.html>`_ |
| 64 |
for more information. |