<imgsrc="images/astropy_banner.svg" width="524" onerror="this.src='images/astropy_banner_96.png'; this.onerror=null;" alt="Astropy: a community Python library for Astronomy" />
<p>The Astropy Project is a community effort to develop a single core
package for Astronomy in Python and foster interoperability between Python
<ahref="https://www.enthought.com/products/canopy/">Enthought Canopy</a>, and
<ahref="http://ssb.stsci.edu/ureka/">Ureka</a>, which
provide an easy way to get set up with a scientific
Python distribution. MacPorts usually includes new releases almost
immediately, but Anaconda and Canopy may not always include the latest
version.</p>
<p>
You can also install the latest version of Astropy using <ahref="http://www.pip-installer.org/">pip</a> or by downloading the source
code and installing it manually - see the <ahref="#source">Source</a> tab above for more details.
</p>
</div>
<divid="linux">
<p>There are a number of options for installing the astropy package on Linux. Astropy can be installed on some Linux distributions using the built-in package manager (apt-get, yum, etc.),
and is also included by default in the
<ahref="https://store.continuum.io/cshop/anaconda/">Anaconda Python Distribution</a> (see <ahref="http://astropy.readthedocs.io/en/stable/install.html#anaconda-python-distribution">here</a> for instructions on updating to the latest Astropy version),
<ahref="https://www.enthought.com/products/canopy/">Enthought Canopy</a>, and
<ahref="http://ssb.stsci.edu/ureka/">Ureka</a>, which
provide an easy way to get set up with a scientific
Python distribution.</p>
<p>The package managers, Anaconda, and Canopy may
not always include the latest version - in that case you can always
install the latest version of Astropy using <ahref="http://www.pip-installer.org/">pip</a> or by downloading the
source code and installing it manually - see the <ahref="#source">Source</a> tab above for
more details.
</p>
</div>
<divid="windows">
<p>There are a number of options for installing the astropy package on Windows.
both of which provide an easy way to get set up with a scientific Python
distribution.</p>
<p>However, Anaconda and Canopy may not always include the
latest version of Astropy, so if you need to install the latest
version, you can either use the binary installers available on
<aclass="button" target="_blank" href="https://pypi.python.org/pypi/astropy/">PyPI</a> (usually made
available a few days after each release) or you can install Astropy from
source - see the <ahref="#source">Source</a> tab above for more details.
</div>
<divid="source">
<p>To install Astropy from source, you can either use</p>
<pre>pip install astropy</pre>
<p>Alternatively, you can download a tarball for the latest release of astropy from <aclass="button" target="_blank" href="https://pypi.python.org/pypi/astropy">PyPI</a>, then expand the tarfile and run:</p>
<pre>python setup.py install</pre>
<p>to build and install the package. For more on installing from source code, see the <ahref="http://astropy.readthedocs.io/en/stable/install.html#building-from-source"> relevant part of the documentation</a>.</p>
</div>
<divid="dev">
<p>The latest developer code is available on <ahref="https://github.com/astropy/astropy">GitHub</a>. If you have <ahref="http://git-scm.com/">git</a> installed you can get the latest version with:</p>
<p>If you don't have git installed, you can instead download a zip file of the <ahref="https://github.com/astropy/astropy/archive/master.zip">latest development version</a>.</p>
<p>Once you have the latest source code, you can build and install it with:</p>
<pre>python setup.py install</pre>
<p>For more on installing from source code, see the <ahref="http://astropy.readthedocs.io/en/latest/install.html#building-from-source"> relevant part of the documentation</a>.</p>
</div>
</div>
<p>Do none of the above instructions work for your system, or do you need more detailed instructions? Check out the <ahref="http://astropy.readthedocs.io/en/stable/install.html">installation instructions</a> in our documentation.</p>
</section>
<sectionclass="whatsnext">
<h2>What's Next?</h2>
<p>Once you have installed Astropy, you can head over to the <a
href="http://docs.astropy.org">documentation</a> for an overview of the
functionality available in Astropy. Each section of the documentation
contains a "Getting started" section that will demonstrate the basic
functionality, and you will then also be able to browse the full
documentation to find out more.
</p>
<aclass="button" href="http://docs.astropy.org/en/stable/getting_started.html" target="_blank">Get Started with Astropy</a>
<p>If you use Astropy in your work, we would be grateful if you could include an acknowledgment in papers and/or presentations. See <ahref="about.html#acknowledge">Acknowledging Astropy</a> for details. </p>
<p>You can also purchase apparel and trinkets from <ahref="http://fashion.astropy.org">fashion.astropy.org</a>, and a portion of the profits go to support the project!</p>